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

index dcba56a5356a860350a116ce7d45e92123bfa2f1..78cc0384c4debb0e0c93c3610418577afe338421 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -309,6 +309,8 @@ Tests
 Build
 -----
 
+- Issue #14018: Fix OS X Tcl/Tk framework checking when using OS X SDKs.
+
 - Issue #8767: Restore building with --disable-unicode.
   Patch by Stefano Taschini.
 
index a939b73eda4436aa5e245b6a89e0f55109070fb2..6dd0422499d9e9631410a015fbbc5e92c393ef8d 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -48,6 +48,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,