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. It doesn't use -framework Python because that's ambiguous without setting a bunch of environment variables. -bob _______________________________________________ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig