On 8-apr-2006, at 9:23, Andrew Trevorrow wrote: > At 9:22 PM -0700 7/4/06, Bob Ippolito wrote: > >> On Apr 7, 2006, at 9:16 PM, Andrew Trevorrow wrote: >> >>> At 3:39 PM -0700 7/4/06, Bob Ippolito wrote: >>> >>>> Really the right way to link to Python is to ask it how via >>>> distutils ... >>> >>> That's what I'm trying to do for my app, but on 10.4.5 I get an >>> incorrect >>> result using: >>> >>> python -c "import distutils.sysconfig; print >>> distutils.sysconfig.get_config_var('LINKFORSHARED')" >>> >>> The result is: >>> >>> -u __dummy -u _PyMac_Error -framework System Python.framework/ >>> Versions/2.3/Python -framework CoreServices -framework Foundation >>> >>> This causes the link stage to fail because it contains >>> "Python.framework/Versions/2.3/Python" rather than "-framework >>> Python". >>> >>> Anybody got a fix for this? >> >> You'd get the right result if you had a Python.framework symlink >> in your build dir. > > But I didn't have to do that on 10.3.9. Are you saying that the > info here > http://pythonmac.org/wiki/ > FAQ#head-9dfb0aba2a1a5c882ae0ba329fda3e16e6835e2f > is no longer correct for 10.4? > >> It doesn't use -framework Python because that's ambiguous without >> setting a bunch of environment variables. > > So what is the correct way to link an app that embeds Python on > 10.4.x? > I'll be happy to update the above wiki entry when I find out. All I'm > trying to do is find a safe way to link our app against the Apple- > supplied > Python framework on 10.3, 10.4, etc.
I'd guess that you have to replace Python.framework/Versions/2.3/ Python by /System/Library/Frameworks/Python.frameworks/Versions/2.3/ Python. That's equivalent to "-framework Python" if you don't have other framework builds of python on your system. Ronald _______________________________________________ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig