[Pythonmac-SIG] py2app improperly using system framework

Ronald Oussoren ronaldoussoren at mac.com
Wed Apr 6 22:26:30 CEST 2011


On 6 Apr, 2011, at 1:48, Nat Echols wrote:

> I'm using py2app from the latest SVN, along with an installation of Python 2.7 in a non-standard location.  I don't get any error messages during running either py2applet or 'setup.py py2app', but at some point during app building, it starts copying over parts of the system's Python (2.6!) installation.  Here is where it starts to fall apart:
> 
> copying /net/clover/scratch1/python/bin/python -> /private/var/tmp/mac_app-dev-720/dist/PHENIX-dev-720.app/Contents/MacOS
> linking /private/var/tmp/mac_app-dev-720/dist/PHENIX-dev-720.app/Contents/Frameworks/python.framework/Python -> Versions/Current/Python
> linking /private/var/tmp/mac_app-dev-720/dist/PHENIX-dev-720.app/Contents/Frameworks/python.framework/Resources -> Versions/Current/Resources
> copying /Library/Frameworks/python.framework/Versions/2.6/bin/2to3 -> /private/var/tmp/mac_app-dev-720/dist/PHENIX-dev-720.app/Contents/Frameworks/python.framework/Versions/2.6/bin
> 
> and then it proceeds to copy over most of the modules from 2.6.  The resulting app is unusable, because it has the Python 2.7 binary which expects the modules in a 'python2.7' folder, but it's actually 'python2.6'.  I've tried reinstalling everything multiple times and nothing I have tried works.  This was working fine on 10.4 with py2app 0.5.2, but I had to upgrade py2app for it to even run on Snow Leopard.  What am I missing here?
> 
Could you try the latest release on PyPI?  This is just to check if that version also has the problem you describe, which I haven't seen before even though I have a number of versions installed on my machine.

Ronald

> thanks,
> Nat
> _______________________________________________
> Pythonmac-SIG maillist  -  Pythonmac-SIG at python.org
> http://mail.python.org/mailman/listinfo/pythonmac-sig
> unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG



More information about the Pythonmac-SIG mailing list