[Python-checkins] bpo-41116: Fix setup.py test for macOS Tcl/Tk frameworks (GH-23649)

ned-deily webhook-mailer at python.org
Fri Dec 4 23:02:19 EST 2020


https://github.com/python/cpython/commit/29afab6c5f656f07ac85c9b2cf089631b2557a11
commit: 29afab6c5f656f07ac85c9b2cf089631b2557a11
branch: master
author: Ned Deily <nad at python.org>
committer: ned-deily <nad at python.org>
date: 2020-12-04T23:02:09-05:00
summary:

bpo-41116: Fix setup.py test for macOS Tcl/Tk frameworks (GH-23649)

If no explicit macOS SDK was specified, setup.py should check for
Tcl and TK frameworks in /Library/Frameworks; the previous commit
inadvertently broke that test.

files:
M setup.py

diff --git a/setup.py b/setup.py
index 0c9a425016869..90588e8b1d1fc 100644
--- a/setup.py
+++ b/setup.py
@@ -177,10 +177,11 @@ def macosx_sdk_root():
     m = re.search(r'-isysroot\s*(\S+)', cflags)
     if m is not None:
         MACOS_SDK_ROOT = m.group(1)
+        MACOS_SDK_SPECIFIED = MACOS_SDK_ROOT != '/'
     else:
         MACOS_SDK_ROOT = _osx_support._default_sysroot(
             sysconfig.get_config_var('CC'))
-    MACOS_SDK_SPECIFIED = MACOS_SDK_ROOT != '/'
+        MACOS_SDK_SPECIFIED = False
 
     return MACOS_SDK_ROOT
 



More information about the Python-checkins mailing list