]> granicus.if.org Git - python/commitdiff
Issue #14018: Fix OS X Tcl/Tk framework checking when using OS X SDKs.
authorNed Deily <nad@acm.org>
Mon, 30 Jul 2012 11:09:32 +0000 (04:09 -0700)
committerNed Deily <nad@acm.org>
Mon, 30 Jul 2012 11:09:32 +0000 (04:09 -0700)
Misc/NEWS
setup.py

index 1b3d24405cc68876cb0515be0f943b8095fb8b03..5ede32413d5a0260df5379cbbe296b35af6568cc 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -435,6 +435,8 @@ Build
 - Issue #14359: Only use O_CLOEXEC in _posixmodule.c if it is defined.
   Based on patch from HervĂ© Coatanhay.
 
+- Issue #14018: Fix OS X Tcl/Tk framework checking when using OS X SDKs.
+
 Documentation
 -------------
 
index 2539f50fa8efede409f6851ee5cddd4798bcfd75..f3886bf437627bc47619ce74fd0bb671904327a0 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -60,6 +60,9 @@ 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/')
+    return ( (path.startswith('/usr/') and not path.startswith('/usr/local'))
+                or path.startswith('/System/')
+                or path.startswith('/Library/') )
 
 def find_file(filename, std_dirs, paths):
     """Searches for the directory where a given file is located,