Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
from 4.0.2 pip install from sources does not work properly anymore - probably waf (2.0.7, 2.0.8) issue #904
Operating system: Linux 18.04 (Ubuntu + Mate)
Description of the problem:
My Configuration :
ISSUE #1 - you need to compile python with option -enable-shared, otherwise Phoenix will not compile
Solution Compile Python with option -enable-shared:
#!/bin/bash # compiling Python and install it on /opt/Python-3.x.x # creating a symlink /opt/python3 # version=Python-3.6.5 cd /rotek/install/$version # assuming that Python 3.6.5 sources lives there sudo make clean sudo ./configure --enable-optimizations --with-lto --enable-shared --prefix /opt/$version sudo make install sudo rm -f /opt/python3 sudo ln -s /opt/$version /opt/python3 echo "finished compiling $version, press ENTER to continue ... " read anykey
But after that step, Phoenix still does not compile - it looks like WAF references to
# EXAMPLE1 - NOT WORKING cd /opt/python3/bin sudo -H ./pip3 install wxpython # not working, can not buil python extensions # EXAMPLE2 cd /rotek/install/Phoenix # this actually works - compiling wx only sudo /opt/python3/bin/python3 ./build.py dox etg --nodoc sip build_wx --python=/opt/Python-3.6.5/bin/python3.6 # next step is failing - can not build python extension sudo /opt/python3/bin/python3 ./build.py dox etg --nodoc sip build_py --python=/opt/Python-3.6.5/bin/python3.6 # passing parameters PYTHONDIR, PYTHONARCHDIR to WAF - now it can compile ! sudo /opt/python3/bin/python3 ./build.py dox etg --nodoc sip build_py --python=/opt/Python-3.6.5/bin/python3.6 --extra_waf="PYTHONDIR=/opt/Python-3.6.5/lib/python3.6/site-packages PYTHONARCHDIR=/opt/Python-3.6.5/lib/python3.6/site-packages"
after finding out that WAF somehow messing it up, I read the code of the WAF script (I tried even WAF 2.0.8) - and found that You can pass those settings also via the environment :
# EXAMPLE3 - WORKING set PYTHONDIR=/opt/Python-3.6.5/lib/python3.6/site-packages set PYTHONARCHDIR=/opt/Python-3.6.5/lib/python3.6/site-packages cd /opt/python3/bin sudo -H ./pip3 install wxpython
QUESTION : did I do something wrong ? I assume no - it worked until Phoenix 4.0.1, it is probably a side effect when switching to new WAF Version ?
REMEDY : maybe pass PYTHONDIR, PYTHONARCHDIR to WAF automagically ?
It would be nice if someone can take care of it and let m know
When you have a minute please try rebuilding with this change to