[Pythonmac-SIG] libpython2.4 for OS X?

Bob Ippolito bob at redivi.com
Sat Apr 8 06:22:12 CEST 2006


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



More information about the Pythonmac-SIG mailing list