File tree Expand file tree Collapse file tree 1 file changed +10
-9
lines changed Expand file tree Collapse file tree 1 file changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -1401,15 +1401,16 @@ def build_cpython(
14011401 shutil .copyfile (source , dest )
14021402
14031403 # Delete the tk nmake helper, it's not needed and links msvc
1404- tcltk_commit : str = DOWNLOADS [tk_bin_entry ]["git_commit" ]
1405- tcltk_path = td / ("cpython-bin-deps-%s" % tcltk_commit )
1406- (
1407- tcltk_path
1408- / build_directory
1409- / "lib"
1410- / "nmake"
1411- / "x86_64-w64-mingw32-nmakehlp.exe"
1412- ).unlink ()
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 ()
14131414
14141415 cpython_source_path = td / ("Python-%s" % python_version )
14151416 pcbuild_path = cpython_source_path / "PCbuild"
You can’t perform that action at this time.
0 commit comments