On 23 Aug, 2011, at 10:16, Vinay Sajip wrote: > I've installed Python 3.3 for some testing on a Leopard machine, and now a 2.x > PyObjC application won't run from its bundle because the 3.3 binary in > /Library/Frameworks/Python.framework is picked up. Of course if I run > > python MyBundled.App/Contents/Resources/main.py > > the system Python (2.5.1) is used, but running > > MyBundled.App/Contents/MacOS/MyBundled > > runs with Python 3.3 and, of course, fails because the 2.5 site-packages used > aren't found. > > Short of removing the 3.3 installation (which I still need for testing), how > does one configure things so that the /Library/Frameworks/Python.framework > binary is skipped and the system Python picked up? I've failed to find the > appropriate info via Google, since "bundle", "path" etc. are seemingly too > generic to home in on any posted info on the topic. > > I've considered that it might be a build-time thing, but looking at XCode > (3.1.4) preferences, I can't see how to specify a particular Python to use.
The easiest fix is to open /Library/Frameworks/Python.framework/Versions in the terminal. That directory contains a symlink 'Current', with some luck removing it will re-enable building applications using Xcode, an other alternative it to point the link the version you want to use (you could even link it to /System/Library/Frameworks/Python.framework/Versions/Current). And one final workaround: the configure script has an option named '--with-framework-name=NAME'. This will install the framework as NAME.framework instead of Python.framework. I use this to install multiple build variants of Python, and to keep my regular Python.framework separate from development builds. Ronald > > Thanks, > > Vinay Sajip > > _______________________________________________ > Pythonmac-SIG maillist - Pythonmac-SIG@python.org > http://mail.python.org/mailman/listinfo/pythonmac-sig > unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG