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.
(cherry picked from commit
29afab6c5f656f07ac85c9b2cf089631b2557a11)
Co-authored-by: Ned Deily <nad@python.org>
--- /dev/null
+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.
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