Skip to content

Commit e9b0ea6

Browse files
committed
Delete x86_64-w64-mingw32-nmakehlp.exe from tcltk
1 parent c52ba1f commit e9b0ea6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

cpython-windows/build.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1303,6 +1303,12 @@ def build_cpython(
13031303
log("copying %s to %s" % (source, dest))
13041304
shutil.copyfile(source, dest)
13051305

1306+
# Delete the tk nmake helper, it's not needed and links msvc
1307+
tcltk_commit = DOWNLOADS["tk-windows-bin"]["git_commit"]
1308+
tcltk_path = td / ("cpython-bin-deps-%s" % tcltk_commit)
1309+
tcltk_arch = {"amd64": "amd64", "x86": "win32"}[arch]
1310+
(tcltk_path / tcltk_arch / "lib" / "nmake" / "x86_64-w64-mingw32-nmakehlp.exe").unlink()
1311+
13061312
cpython_source_path = td / ("Python-%s" % python_version)
13071313
pcbuild_path = cpython_source_path / "PCbuild"
13081314

0 commit comments

Comments
 (0)