]> granicus.if.org Git - python/commit
Issue #25136: Support Apple Xcode 7's new textual SDK stub libraries.
authorNed Deily <nad@python.org>
Wed, 24 Feb 2016 13:55:24 +0000 (00:55 +1100)
committerNed Deily <nad@python.org>
Wed, 24 Feb 2016 13:55:24 +0000 (00:55 +1100)
commit83abccbbc0d6935f889391c09ab990a5c221a6c4
tree96edc268fb0de056c5246bcab7fafa6eb48beb2a
parent098f6d0caa811ffcdd700ddde7d2558bb823390f
Issue #25136: Support Apple Xcode 7's new textual SDK stub libraries.

As of Xcode 7, SDKs for Apple platforms now include textual-format stub
libraries whose file names have a .tbd extension rather than the
standard OS X .dylib extension.  The Apple compiler tool chain handles
these stub libraries transparently and the installed system shared libraries
are still .dylibs.  However, the new stub libraries cause problems for
third-party programs that support building with Apple SDKs and make
build-time decisions based on the presence or paths of system-supplied
shared libraries in the SDK.  In particular, building Python itself with
an SDK fails to find system-supplied libraries during setup.py's build of
standard library extension modules.  The solution is to have
find_library_file() in Distutils search for .tbd files, along with
the existing types (.a, .so, and .dylib).  Patch by Tim Smith.
Lib/distutils/ccompiler.py
Lib/distutils/unixccompiler.py
Misc/NEWS
setup.py