Skip to content

Commit f525650

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

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
@@ -1271,6 +1271,12 @@ def build_cpython(
12711271
log("copying %s to %s" % (source, dest))
12721272
shutil.copyfile(source, dest)
12731273

1274+
# Delete the tk nmake helper, it's not needed and links msvc
1275+
tcltk_commit = DOWNLOADS["tk-windows-bin"]["git_commit"]
1276+
tcltk_path = td / ("cpython-bin-deps-%s" % tcltk_commit)
1277+
tcltk_arch = {"amd64": "amd64", "x86": "win32"}[arch]
1278+
(tcltk_path / tcltk_arch / "lib" / "nmake" / "x86_64-w64-mingw32-nmakehlp.exe").unlink()
1279+
12741280
cpython_source_path = td / ("Python-%s" % python_version)
12751281
pcbuild_path = cpython_source_path / "PCbuild"
12761282

0 commit comments

Comments
 (0)