Skip to content

Commit

Permalink
Merge pull request python-pillow#8519 from cubanpit/patch-1
Browse files Browse the repository at this point in the history
Allow linking to zlib import library on Windows
  • Loading branch information
radarhere authored Nov 9, 2024
2 parents d642d2c + a1d862f commit a01c31a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -690,6 +690,8 @@ def build_extensions(self) -> None:
feature.set("zlib", "z")
elif sys.platform == "win32" and _find_library_file(self, "zlib"):
feature.set("zlib", "zlib") # alternative name
elif sys.platform == "win32" and _find_library_file(self, "zdll"):
feature.set("zlib", "zdll") # dll import library

if feature.want("jpeg"):
_dbg("Looking for jpeg")
Expand Down

0 comments on commit a01c31a

Please sign in to comment.