Am 02.08.2011 11:25, schrieb Ronald Oussoren:

On 31 Jul, 2011, at 0:41, Florian Höch wrote:

In 10.7, some functionality of the Carbon libraries is only
available in 32-bit mode, but py2app created binaries run in 64-bit
mode on Lion. In my case wx and py2app's argv-emulation feature
needed Carbon functionality that isn't available in 64-bit mode, so
I did work around this by replacing the binaries with 32-bit ones
after the app was created.

First, I used the official python.org Python 2.7 x86-64/i386
installer. Then I built my app with the 32-bit python:

python2.7-32 setup.py p2app

Then I replaced the binaries in the app:

cp
/Library/Python/2.7/site-packages/py2app-0.6.3-py2.7.egg/py2app/apptemplate/prebuilt/main-i386
/PATH/TO/APP/APPNAME.app/Contents/MacOS/APPNAME

cp
/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7-32
/PATH/TO/APP/APPNAME.app/Contents/MacOS/python

Just thought I'd share my findings.

The py2app repository contains a version of the argv emulator that
works in 64-bit mode. I have to rebuild the executable stubs on a
10.6 system with Xcode 3 before I can release that version, that
should hopefully happen later this week.

Thanks, good to know. Even though personally I don't need 64-bit support
yet, as wxPython currently only works in 32-bit mode on the Mac, so atm I'm limited by that. In my case it's not an issue, thankfully.

Ronald

Regards -- Florian Höch

_______________________________________________ Pythonmac-SIG
maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig unsubscribe:
http://mail.python.org/mailman/options/Pythonmac-SIG


--
Florian Höch

_______________________________________________
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig
unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG

Reply via email to