python.bin oddity?

Jack Howarth howarth at bromo.med.uc.edu
Fri Oct 16 16:24:55 PDT 2009


   While testing the proposed apbs packaging with
the PortGroup python26 option, I am finding that
the build fails with...

DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/_Users_howarth_ports_science_apbs/work/apbs-1.1.0-source" && /opt/local/Library/Frameworks/Python.framework/Versions/2.6/bin/python2.6 setup.py --no-user-cfg build'
/opt/local/Library/Frameworks/Python.framework/Versions/2.6/Resources/Python.app/Contents/MacOS/Python: can't open file 'setup.py': [Errno 2] No such file or directory
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_Users_howarth_ports_science_apbs/work/apbs-1.1.0-source" && /opt/local/Library/Frameworks/Python.framework/Versions/2.6/bin/python2.6 setup.py --no-user-cfg build " returned error 2
Command output: /opt/local/Library/Frameworks/Python.framework/Versions/2.6/Resources/Python.app/Contents/MacOS/Python: can't open file 'setup.py': [Errno 2] No such file or directory


Why exactly is python.bin resolving to /opt/local/Library/Frameworks/Python.framework/Versions/2.6/Resources/Python.app/Contents/MacOS/Python
instead of  /opt/local/Library/Frameworks/Python.framework/Versions/2.6/bin/python or
/opt/local/Library/Frameworks/Python.framework/Versions/2.6/bin/python2.6?
                       Jack


More information about the macports-dev mailing list