Skip to content

Commit 8e9d8fb

Browse files
committed
All Tcl/Tk patch to fail
1 parent cab84a5 commit 8e9d8fb

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

cpython-windows/build.py

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -588,11 +588,14 @@ def hack_project_files(
588588
if meets_python_minimum_version(python_version, "3.12") and (
589589
meets_python_maximum_version(python_version, "3.13") or arch == "arm64"
590590
):
591-
static_replace_in_file(
592-
pcbuild_path / "_tkinter.vcxproj",
593-
rb'<_TclTkDLL Include="$(tcltkdir)\bin\$(tclZlibDllName)" />',
594-
rb"",
595-
)
591+
try:
592+
static_replace_in_file(
593+
pcbuild_path / "_tkinter.vcxproj",
594+
rb'<_TclTkDLL Include="$(tcltkdir)\bin\$(tclZlibDllName)" />',
595+
rb"",
596+
)
597+
except NoSearchStringError:
598+
pass
596599

597600
# We don't need to produce python_uwp.exe and its *w variant. Or the
598601
# python3.dll, pyshellext, or pylauncher.

0 commit comments

Comments
 (0)