From 82dd26d4fa269b4e73ea4aafe641417df35f2088 Mon Sep 17 00:00:00 2001 From: Zanie Blue Date: Wed, 4 Sep 2024 18:51:29 -0500 Subject: [PATCH] Attempt to remove the `zlib1.dll` from tcltk builds --- cpython-windows/build.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/cpython-windows/build.py b/cpython-windows/build.py index d84a5f90..1013542b 100644 --- a/cpython-windows/build.py +++ b/cpython-windows/build.py @@ -421,6 +421,13 @@ def hack_props( rb"%s\$(ArchName)\" % tcltk_path, ) + try: + static_replace_in_file( + tcltkprops_path, rb"zlib1.dll", rb"" + ) + except NoSearchStringError: + pass + # We want to statically link against OpenSSL. This requires using our own # OpenSSL build. This requires some hacking of various files. openssl_props = pcbuild_path / "openssl.props"