Skip to content

Commit f5d0a23

Browse files
committed
Attempt to remove the zlib1.dll from tcltk builds
1 parent 64b3029 commit f5d0a23

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

cpython-windows/build.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -436,6 +436,13 @@ def hack_props(
436436
rb"<tcltkDir>%s\$(ArchName)\</tcltkDir>" % tcltk_path,
437437
)
438438

439+
try:
440+
static_replace_in_file(
441+
tcltkprops_path, rb"<tclZlibDLLName>zlib1.dll</tclZlibDLLName>", rb""
442+
)
443+
except NoSearchStringError:
444+
pass
445+
439446
# We want to statically link against OpenSSL. This requires using our own
440447
# OpenSSL build. This requires some hacking of various files.
441448
openssl_props = pcbuild_path / "openssl.props"

0 commit comments

Comments
 (0)