[issue9046] Python 2.7rc2 doesn't build on Mac OS X 10.4
Ronald Oussoren
report at bugs.python.org
Tue Jun 22 16:32:14 CEST 2010
Ronald Oussoren <ronaldoussoren at mac.com> added the comment:
What I don't quite understand is why the build fails for you but passes for me. What configure flags did you use?
This version should fare better:
def is_macosx_sdk_path(path):
"""
Returns True if 'path' can be located in an OSX SDK
"""
return (path.startswith('/usr/') and not path.startswith('/usr/local')) or path.startswith('/System/')
This explicitly tests for paths that must be in the SDK:
* Anything in /System is owned by the system, and should be fetched
through the SDK
* Likewise for anything in /usr that isn't in /usr/local
IMHO anyone that installs additional libraries in /usr/lib, or /System/Libraries/Frameworks is confused at best, and we shouldn't even try to support that.
The repository contains an simpler (but in hindsight too simple) version because ${SDKROOT}/usr/local/lib is a symlink to the real /usr/local/lib. That works fine when looking for libraries, but not when looking for other files (such as headers).
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9046>
_______________________________________
More information about the Python-bugs-list
mailing list