Skip to content

Commit a01c31a

Browse files
authored
Merge pull request #8519 from cubanpit/patch-1
Allow linking to zlib import library on Windows
2 parents d642d2c + a1d862f commit a01c31a

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

setup.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -690,6 +690,8 @@ def build_extensions(self) -> None:
690690
feature.set("zlib", "z")
691691
elif sys.platform == "win32" and _find_library_file(self, "zlib"):
692692
feature.set("zlib", "zlib") # alternative name
693+
elif sys.platform == "win32" and _find_library_file(self, "zdll"):
694+
feature.set("zlib", "zdll") # dll import library
693695

694696
if feature.want("jpeg"):
695697
_dbg("Looking for jpeg")

0 commit comments

Comments
 (0)