Skip to content

Commit a48868d

Browse files
committed
Drop 8612 special case
1 parent fc0e640 commit a48868d

File tree

1 file changed

+12
-29
lines changed

1 file changed

+12
-29
lines changed

cpython-windows/build.py

Lines changed: 12 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@
122122
"_lzma": ["xz"],
123123
"_sqlite3": ["sqlite"],
124124
"_ssl": ["openssl"],
125-
"_tkinter": ["tcl-8612", "tk-8612", "tix"],
125+
"_tkinter": ["tcl", "tk", "tix"],
126126
"_uuid": ["uuid"],
127127
"zlib": ["zlib"],
128128
"_zstd": ["zstd"],
@@ -370,10 +370,7 @@ def hack_props(
370370

371371
mpdecimal_version = DOWNLOADS["mpdecimal"]["version"]
372372

373-
if meets_python_minimum_version(python_version, "3.14") or arch == "arm64":
374-
tcltk_commit = DOWNLOADS["tk-windows-bin"]["git_commit"]
375-
else:
376-
tcltk_commit = DOWNLOADS["tk-windows-bin-8612"]["git_commit"]
373+
tcltk_commit = DOWNLOADS["tk-windows-bin"]["git_commit"]
377374

378375
sqlite_path = td / ("sqlite-autoconf-%s" % sqlite_version)
379376
bzip2_path = td / ("bzip2-%s" % bzip2_version)
@@ -1220,10 +1217,6 @@ def find_additional_dependencies(project: pathlib.Path):
12201217
if name == "zlib":
12211218
name = zlib_entry
12221219

1223-
# On 3.14+ and aarch64, we use the latest tcl/tk version
1224-
if ext == "_tkinter" and (python_majmin == "314" or arch == "arm64"):
1225-
name = name.replace("-8612", "")
1226-
12271220
download_entry = DOWNLOADS[name]
12281221

12291222
# This will raise if no license metadata defined. This is
@@ -1307,17 +1300,8 @@ def build_cpython(
13071300
setuptools_wheel = download_entry("setuptools", BUILD)
13081301
pip_wheel = download_entry("pip", BUILD)
13091302

1310-
# On CPython 3.14+, we use the latest tcl/tk version which has additional
1311-
# runtime dependencies, so we are conservative and use the old version
1312-
# elsewhere. The old version isn't built for arm64, so we use the new
1313-
# version there too
1314-
tk_bin_entry = (
1315-
"tk-windows-bin"
1316-
if meets_python_minimum_version(python_version, "3.14") or arch == "arm64"
1317-
else "tk-windows-bin-8612"
1318-
)
13191303
tk_bin_archive = download_entry(
1320-
tk_bin_entry, BUILD, local_name="tk-windows-bin.tar.gz"
1304+
"tk-windows-bin", BUILD, local_name="tk-windows-bin.tar.gz"
13211305
)
13221306

13231307
# On CPython 3.14+, zstd is included
@@ -1401,16 +1385,15 @@ def build_cpython(
14011385
shutil.copyfile(source, dest)
14021386

14031387
# Delete the tk nmake helper, it's not needed and links msvc
1404-
if tk_bin_entry == "tk-windows-bin":
1405-
tcltk_commit: str = DOWNLOADS[tk_bin_entry]["git_commit"]
1406-
tcltk_path = td / ("cpython-bin-deps-%s" % tcltk_commit)
1407-
(
1408-
tcltk_path
1409-
/ build_directory
1410-
/ "lib"
1411-
/ "nmake"
1412-
/ "x86_64-w64-mingw32-nmakehlp.exe"
1413-
).unlink()
1388+
tcltk_commit: str = DOWNLOADS["tk-windows-bin"]["git_commit"]
1389+
tcltk_path = td / ("cpython-bin-deps-%s" % tcltk_commit)
1390+
(
1391+
tcltk_path
1392+
/ build_directory
1393+
/ "lib"
1394+
/ "nmake"
1395+
/ "x86_64-w64-mingw32-nmakehlp.exe"
1396+
).unlink()
14141397

14151398
cpython_source_path = td / ("Python-%s" % python_version)
14161399
pcbuild_path = cpython_source_path / "PCbuild"

0 commit comments

Comments
 (0)