[Python-Dev] MacOSX -framework options and distutils weirdness
ronaldoussoren at mac.com
Wed Oct 10 08:23:19 CEST 2007
On 9 Oct, 2007, at 23:11, Greg Ewing wrote:
> Ronald Oussoren wrote:
>> Is that the system supplied version of Python?
> No, it's my own installation of 2.3, but it's installed
> as a framework in /Library/Frameworks.
>> My guess is MACOSX_DEPLOYMENT_TARGET: this is set in the
> > environment by distutils.
> I wondered about that -- I've noticed that with later
> Python versions, distutils linking commands *don't* work
> in the shell unless I set MACOSX_DEPLOYMENT_TARGET to
> 10.3 (it's not set at all in my shell environment by
> But the problem here is the other way around. I would
> have thought distutils would set it to something appropriate
> for the Python being used.
It is supposed to do that, but to be honest I don't remember if the
code for that is present in the 2.3 tree and I'm too lazy to check the
sources right now.
The deployment target does have an influence on how the compiler
functions, which can explain when setting the target to a different
value causes problems.
> Any suggestions on how I can find out what setting of
> MACOSX_DEPLOYMENT_TARGET is being used by distutils, and
> how to make it use something different if it's not right?
In current versions of python this is read from config/Makefile in the
standard library (that is /Library/Frameworks/Python.framework/
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 2224 bytes
Desc: not available
Url : http://mail.python.org/pipermail/python-dev/attachments/20071010/53b6b31a/attachment.bin
More information about the Python-Dev