1. DL, extract, and build sip from source.2. Create environment variable 'SIP' which points to the install3. DL wxPython Phoenix source tarball, extract, cd to extracted dir4. python ./build.py --build_dir=./bld dox5. python ./build.py --build_dir=./bld touch6. python ./build.py --build_dir=./bld etg --nodoc7. sudo -E python ./build.py --build_dir=./bld sip # I've found that I need sudo for this step. `-E` is to keep environment variables.8. python ./build.py --build_dir=./bld build_wx
9. python ./build.py --build_dir=./bld build_py
$ python ./build.py --build_dir=./bld dox Build using: "/home/travis/virtualenv/python3.4.2/bin/python" 3.4.2 (default, Feb 5 2015, 15:56:51) [GCC 4.6.3] Python's architecture is 64bit cfg.VERSION: 3.0.3 Running command: dox Checking for /home/travis/build/dougthor42/wafer_map/Phoenix/bin/doxygen-1.8.8-linux... Not found. Attempting to download... Connection successful... Data downloaded... Checking for /home/travis/build/dougthor42/wafer_map/Phoenix/bin/doxygen-1.8.8-linux... Traceback (most recent call last): File "./build.py", line 1653, in <module> main(sys.argv[1:]) File "./build.py", line 170, in main function(options, args) File "./build.py", line 708, in cmd_dox _doDox('xml') File "./build.py", line 701, in _doDox pwd = pushDir(posixjoin(wxDir(), 'docs/doxygen')) File "./build.py", line 434, in __init__ os.chdir(newDir) FileNotFoundError: [Errno 2] No such file or directory: '/home/travis/build/dougthor42/wafer_map/Phoenix/ext/wxWidgets/docs/doxygen' Finished command: dox (0m1.725s) The command "python ./build.py --build_dir=./bld dox" failed and exited with 1 during . Your build has been stopped.
- bzip2 -d doxygen-1.8.8-linux.bz2
- mv doxygen-1.8.8-linux ./bin/doxygen-1.8.8-linux
- chmod 755 ./bin/doxygen-1.8.8-linux
- bzip2 -d sip-4.16.7-linux.bz2
- mv sip-4.16.7-linux ./bin/sip-4.16.7-linux
- chmod 755 ./bin/sip-4.16.7-linux
No such file or directory: '/home/travis/build/dougthor42/wafer_map/Phoenix/bin/sip-4.16.7-linux'
- export SIP=/home/travis/build/dougthor42/wafer_map/Phoenix/bin
- set | grep SIP
- env | grep SIP
------------------------------------------------------------Solution:I manually download doxygen from http://wxpython.org/Phoenix/tools/doxygen-1.8.8-linux.bz2, extract it, and chmod:- bzip2 -d doxygen-1.8.8-linux.bz2
- mv doxygen-1.8.8-linux ./bin/doxygen-1.8.8-linux
- chmod 755 ./bin/doxygen-1.8.8-linux
Now the build can get through the dox step.
Error #2: build.py cannot find sip (Unsolved):build.py cannot find sip, claiming that the file doesn't exist.You can see the error text at the bottom of this: https://travis-ci.org/dougthor42/wafer_map/builds/72493336
So I tried the same thing as I did with dox: tried getting sip manually from Phoenix/tools:- bzip2 -d sip-4.16.7-linux.bz2
- mv sip-4.16.7-linux ./bin/sip-4.16.7-linux
- chmod 755 ./bin/sip-4.16.7-linux
But that didn't work entirely. I got a new error:No such file or directory: '/home/travis/build/dougthor42/wafer_map/Phoenix/bin/sip-4.16.7-linux'So I thought, OK fine, I need to set the envion var. So I do so- export SIP=/home/travis/build/dougthor42/wafer_map/Phoenix/bin
- set | grep SIP
- env | grep SIP
and get error 126: permission denied or command not executable. Note that I am using sudo.
------------------------------------------------------------
[0K$ sudo -E python ./build.py --build_dir=./bld sipBuild using: "/usr/bin/python"2.7.3 (default, Dec 18 2014, 19:10:20)[GCC 4.6.3]Python's architecture is 64bitcfg.VERSION: 3.0.3Running command: sip/home/travis/build/dougthor42/wafer_map/Phoenix/bin/ -w -o -I /home/travis/build/dougthor42/wafer_map/Phoenix/src -I /home/travis/build/dougthor42/wafer_map/Phoenix/sip/gen -c /tmp/tmp3J61Ec -b sip/cpp/_core.sbf -X pycode_core:wx/core.py sip/gen/_core.sip/bin/sh: 1: /home/travis/build/dougthor42/wafer_map/Phoenix/bin/: Permission denied
Command '/home/travis/build/dougthor42/wafer_map/Phoenix/bin/ -w -o -I /home/travis/build/dougthor42/wafer_map/Phoenix/src -I /home/travis/build/dougthor42/wafer_map/Phoenix/sip/gen -c /tmp/tmp3J61Ec -b sip/cpp/_core.sbf -X pycode_core:wx/core.py sip/gen/_core.sip' failed with exit code 126.Finished command: sip (0.153s)travis_time:end:08d6a602:start=1437760360345360560,finish=1437760360873592795,duration=528232235[0K[31;1mThe command "sudo -E python ./build.py --build_dir=./bld sip" failed and exited with 126 during . [0mYour build has been stopped.------------------------------------------------------------So that's where I'm at right now. SIP unable to start.
Did you checkout the wxWidgets submodule in addition to Phoenix?
It really would be better to figure out why it's not downloading the tools in build.py, or is unable to use them, and fix the problem there.
Is it something that travis is preventing? What were the errors when it tried to do the download of the tools?
$ ls -lh /home/travis/build/dougthor42/ci_setup_testing/Phoenix/total 208K-rwxrwxr-x 1 travis travis 268 Aug 11 01:49 bdrwxrwxr-x 2 travis travis 4.0K Aug 11 01:51 bindrwxrwxr-x 2 travis travis 40 Aug 11 01:49 buildbot-rwxrwxr-x 1 travis travis 58K Aug 11 01:49 build.pydrwxrwxr-x 3 travis travis 122 Aug 11 01:50 buildtoolsdrwxrwxr-x 7 travis travis 8.0K Aug 11 01:49 demodrwxrwxr-x 3 travis travis 99 Aug 11 01:49 docsdrwxrwxr-x 3 travis travis 8.0K Aug 11 01:51 etgdrwxrwxr-x 3 travis travis 4.0K Aug 11 01:51 etgtoolsdrwxrwxr-x 3 travis travis 39 Aug 11 01:49 ext-rw-rw-r-- 1 travis travis 11K Aug 11 01:49 ez_setup.py-rw-rw-r-- 1 travis travis 339 Aug 11 01:49 MANIFEST.indrwxrwxr-x 2 travis travis 94 Aug 11 01:49 packaging-rw-rw-r-- 1 travis travis 16K Aug 11 01:49 README.rstdrwxrwxr-x 15 travis travis 4.0K Aug 11 01:49 samples-rw-rw-r-- 1 travis travis 13K Aug 11 01:49 setup.pydrwxrwxr-x 5 travis travis 39 Aug 11 01:49 sipdrwxrwxr-x 3 travis travis 4.0K Aug 11 01:51 sphinxtoolsdrwxrwxr-x 2 travis travis 4.0K Aug 11 01:49 src-rw-rw-r-- 1 travis travis 6.6K Aug 11 01:49 TODO.txtdrwxrwxr-x 4 travis travis 12K Aug 11 01:49 unittests-rw-rw-r-- 1 travis travis 24K Aug 11 01:49 wscriptdrwxrwxr-x 5 travis travis 4.0K Aug 11 01:51 wx$ ls -lh /home/travis/build/dougthor42/ci_setup_testing/Phoenix/bintotal 13M-rw-rw-r-- 1 travis travis 1.3K Aug 11 01:49 build-sip-msw-rwxrwxr-x 1 travis travis 1.5K Aug 11 01:49 build-sip-posix-rwxr-xr-x 1 travis travis 12M Aug 11 01:50 doxygen-1.8.8-linux-rwxrwxr-x 1 travis travis 4.0K Aug 11 01:49 make-new-etg-file.py-rwxrwxr-x 1 travis travis 1.6K Aug 11 01:49 make-new-unittest-file.py-rw-rw-r-- 1 travis travis 286 Aug 11 01:49 mymd5.py-rwxr-xr-x 1 travis travis 325K Aug 11 01:51 sip-4.16.7-linux
$ file /home/travis/build/dougthor42/ci_setup_testing/Phoenix/bin/sip-4.16.7-linux/home/travis/build/dougthor42/ci_setup_testing/Phoenix/bin/sip-4.16.7-linux: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.15, BuildID[sha1]=0xbfa6be84e8c98068db168af694fcb1aaf3814683, not stripped
The only potential issue I can think of is if the linux build host is 32-bit, because the tools are compiled for 64-bit.
& uname -aLinux testing-worker-linux-docker-40ad31a9-3196-linux-7 3.13.0-40-generic #69-Ubuntu SMP Thu Nov 13 17:53:56 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
It really would be better to figure out why it's not downloading the tools in build.py, or is unable to use them, and fix the problem there. Is it something that travis is preventing? What were the errors when it tried to do the download of the tools? The only potential issue I can think of is if the linux build host is 32-bit, because the tools are compiled for 64-bit.