[issue13590] extension module builds fail with python.org OS X installers on OS X 10.7 and 10.6 with Xcode 4.2

Ned Deily report at bugs.python.org
Sat Jun 23 13:00:33 CEST 2012


Ned Deily <nad at acm.org> added the comment:

Thanks, Ronald.  Version 3 addresses various issues, including adding a search of $PATH for clang since xcrun is not useful in the case where the user has installed a standalone Command Line Tools package or has installed a Command Line Tools component from within Xcode but hasn't run xcode-select.  Another problem: the SDK path is likely going to be incorrect in the common case of an installer build on 10.5 or 10.6 but run on 10.7 or later.  It's tricky to get all the edge cases correct for that.  For now, the solution is to delete -sdkroot parameters from the default CFLAGS and friends if the SDK path is invalid; that assumes the Command Line Tools component/package has been installed.  If necessary, the user can override via env variables.  Also, the compiler validity checks are now bypassed if the user has overridden CC.  I'll plan to commit later today for 3.3.0b1 along with some README updates.

----------
stage: needs patch -> commit review
Added file: http://bugs.python.org/file26105/issue13950-version3.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13590>
_______________________________________


More information about the Python-bugs-list mailing list