File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change
1
+ Avoid falling back to the deprecated Apple-supplied system Tcl/Tk 8.5 on
2
+ macOS builds as this version is known to have many critical problems and
3
+ causes Python test suite failures. This last-ditch fallback behavior was
4
+ removed in Python 3.11 but is still causing problems for users and Python
5
+ release testing for older security-fix-only branches like this one. With
6
+ this change, building of `_tkinter ` on macOS will be skipped if no other
7
+ versions of Tcl/Tk can be found.
Original file line number Diff line number Diff line change @@ -1744,9 +1744,13 @@ def detect_tkinter_darwin(self):
1744
1744
# The _tkinter module, using frameworks. Since frameworks are quite
1745
1745
# different the UNIX search logic is not sharable.
1746
1746
from os .path import join , exists
1747
+
1748
+ # gh-115436: We no longer fall back to searching for the
1749
+ # Apple-supplied Tcl and Tk 8.5 in /System/Library/Frameworks
1750
+ # as their use causes too many problems for users. It seems
1751
+ # better to just skip building _tkinter at all in that case.
1747
1752
framework_dirs = [
1748
1753
'/Library/Frameworks' ,
1749
- '/System/Library/Frameworks/' ,
1750
1754
join (os .getenv ('HOME' ), '/Library/Frameworks' )
1751
1755
]
1752
1756
You can’t perform that action at this time.
0 commit comments