Skip to content

Commit 865a8c5

Browse files
committed
Delete x86_64-w64-mingw32-nmakehlp.exe from tcltk
1 parent 858f2b6 commit 865a8c5

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

cpython-windows/build.py

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1268,14 +1268,10 @@ def build_cpython(
12681268
# runtime dependencies, so we are conservative and use the old version
12691269
# elsewhere. The old version isn't built for arm64, so we use the new
12701270
# version there too
1271-
if meets_python_minimum_version(python_version, "3.14") or arch == "arm64":
1272-
tk_bin_archive = download_entry(
1273-
"tk-windows-bin", BUILD, local_name="tk-windows-bin.tar.gz"
1274-
)
1275-
else:
1276-
tk_bin_archive = download_entry(
1277-
"tk-windows-bin-8612", BUILD, local_name="tk-windows-bin.tar.gz"
1278-
)
1271+
tk_bin_entry = "tk-windows-bin" if meets_python_minimum_version(python_version, "3.14") or arch == "arm64" else "tk-windows-bin-8612"
1272+
tk_bin_archive = download_entry(
1273+
tk_bin_entry, BUILD, local_name="tk-windows-bin.tar.gz"
1274+
)
12791275

12801276
# CPython 3.13+ no longer uses a bundled `mpdecimal` version so we build it
12811277
if meets_python_minimum_version(python_version, "3.13"):
@@ -1350,6 +1346,11 @@ def build_cpython(
13501346
log("copying %s to %s" % (source, dest))
13511347
shutil.copyfile(source, dest)
13521348

1349+
# Delete the tk nmake helper, it's not needed and links msvc
1350+
tcltk_commit: str = DOWNLOADS[tk_bin_entry]["git_commit"]
1351+
tcltk_path = td / ("cpython-bin-deps-%s" % tcltk_commit)
1352+
(tcltk_path / build_directory / "lib" / "nmake" / "x86_64-w64-mingw32-nmakehlp.exe").unlink()
1353+
13531354
cpython_source_path = td / ("Python-%s" % python_version)
13541355
pcbuild_path = cpython_source_path / "PCbuild"
13551356

0 commit comments

Comments
 (0)