@@ -1867,8 +1867,7 @@ def detect_tkinter_darwin(self):
1867
1867
# Tcl and Tk frameworks installed in /Library/Frameworks.
1868
1868
# 2. Build and link using a user-specified macOS SDK so that the
1869
1869
# built Python can be exported to other systems. In this case,
1870
- # search only the SDK's /Library/Frameworks (normally empty)
1871
- # and /System/Library/Frameworks.
1870
+ # search only the SDK's /Library/Frameworks (normally empty).
1872
1871
#
1873
1872
# Any other use case should be able to be handled explicitly by
1874
1873
# using the options described above in detect_tkinter_explicitly().
@@ -1888,6 +1887,10 @@ def detect_tkinter_darwin(self):
1888
1887
# all possible by installing a newer version of Tcl and Tk in
1889
1888
# /Library/Frameworks before building Python without
1890
1889
# an explicit SDK or by configuring build arguments explicitly.
1890
+ # CHANGED: we no longer fall back to searching for the
1891
+ # Apple-supplied Tcl and Tk 8.5 in /System/Library/Frameworks
1892
+ # as their use causes too many problems for users. It seems
1893
+ # better to just skip building _tkinter at all in that case.
1891
1894
1892
1895
from os .path import join , exists
1893
1896
@@ -1898,17 +1901,13 @@ def detect_tkinter_darwin(self):
1898
1901
# Only search there.
1899
1902
framework_dirs = [
1900
1903
join (sysroot , 'Library' , 'Frameworks' ),
1901
- join (sysroot , 'System' , 'Library' , 'Frameworks' ),
1902
1904
]
1903
1905
else :
1904
1906
# Use case #1: no explicit SDK selected.
1905
1907
# Search the local system-wide /Library/Frameworks,
1906
- # not the one in the default SDK, otherwise fall back to
1907
- # /System/Library/Frameworks whose header files may be in
1908
- # the default SDK or, on older systems, actually installed.
1908
+ # not the one in the default SDK.
1909
1909
framework_dirs = [
1910
1910
join ('/' , 'Library' , 'Frameworks' ),
1911
- join (sysroot , 'System' , 'Library' , 'Frameworks' ),
1912
1911
]
1913
1912
1914
1913
# Find the directory that contains the Tcl.framework and
0 commit comments