Skip to content

Commit ca3a44a

Browse files
committed
Patch tcltk toggle?
1 parent 865a8c5 commit ca3a44a

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

cpython-windows/build.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -499,6 +499,14 @@ def hack_project_files(
499499
python_version,
500500
)
501501

502+
# `--include-tcltk` is forced off on arm64, undo that
503+
# See https://github.com/python/cpython/pull/132650
504+
static_replace_in_file(
505+
cpython_source_path / "PC" / "layout" / "main.py",
506+
rb'if ns.arch in ("arm32", "arm64"):',
507+
rb'if ns.arch == "arm32":',
508+
)
509+
502510
# Our SQLite directory is named weirdly. This throws off version detection
503511
# in the project file. Replace the parsing logic with a static string.
504512
sqlite3_version = DOWNLOADS["sqlite"]["actual_version"].encode("ascii")

0 commit comments

Comments
 (0)