mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 18:06:18 +03:00
Merge pull request #8519 from cubanpit/patch-1
Allow linking to zlib import library on Windows
This commit is contained in:
commit
a01c31a1a3
2
setup.py
2
setup.py
|
@ -690,6 +690,8 @@ class pil_build_ext(build_ext):
|
||||||
feature.set("zlib", "z")
|
feature.set("zlib", "z")
|
||||||
elif sys.platform == "win32" and _find_library_file(self, "zlib"):
|
elif sys.platform == "win32" and _find_library_file(self, "zlib"):
|
||||||
feature.set("zlib", "zlib") # alternative name
|
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"):
|
if feature.want("jpeg"):
|
||||||
_dbg("Looking for jpeg")
|
_dbg("Looking for jpeg")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user