[Python-Dev] Re: [Python-checkins] python/dist/src/Mac/OSX fixapplepython23.py, 1.1, 1.2

Bob Ippolito bob at redivi.com
Wed Dec 29 04:35:15 CET 2004

On Dec 28, 2004, at 4:30 PM, jackjansen at users.sourceforge.net wrote:

> Update of /cvsroot/python/python/dist/src/Mac/OSX
> In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9229
> Modified Files:
> 	fixapplepython23.py
> Log Message:
> Just passing -undefined dynamic_lookup isn't enough: we also need to 
> set
> the MACOSX_DEPLOYMENT_TARGET environment variable to 10.3 when calling 
> the
> loader. And we do this with "env" because distutils apparently doesn't
> understand environment variable assignments before command names.

This is the wrong fix.  Distutils is dumber than you think.  This patch 
just breaks C++ compilation in a different way.  The correct solution 
is a patch to distutils of some kind.

from distutils/unixccompiler.py:174

                 if target_lang == "c++" and self.compiler_cxx:
                     linker[0] = self.compiler_cxx[0]
                 self.spawn(linker + ld_args)

"linker" is the variable expanded LDSHARED (or whatever comes out of 


More information about the Python-Dev mailing list