]> granicus.if.org Git - python/commit
Issue #13590: On OS X 10.7 and 10.6 with Xcode 4.2, building
authorNed Deily <nad@acm.org>
Fri, 10 Feb 2012 11:59:06 +0000 (12:59 +0100)
committerNed Deily <nad@acm.org>
Fri, 10 Feb 2012 11:59:06 +0000 (12:59 +0100)
commit0d0ea48709186b1ee7505d98816fc75e2cf14df9
tree6cea354ae679a60ac3eabc6e93b1835264a3166c
parent4ad7f7f31aa6827e90e974f9bc8edce2ea48c84b
Issue #13590: On OS X 10.7 and 10.6 with Xcode 4.2, building
Distutils-based packages with C extension modules may fail because
Apple has removed gcc-4.2, the version used to build python.org
64-bit/32-bit Pythons.  If the user does not explicitly override
the default C compiler by setting the CC environment variable,
Distutils will now attempt to compile extension modules with clang
if gcc-4.2 is required but not found. Also as a convenience, if
the user does explicitly set CC, substitute its value as the default
compiler in the Distutils LDSHARED configuration variable for OS X.
(Note, the python.org 32-bit-only Pythons use gcc-4.0 and the 10.4u
SDK, neither of which are available in Xcode 4.  This change does not
attempt to override settings to support their use with Xcode 4.)
Lib/distutils/sysconfig.py
Misc/NEWS