mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-12 10:16:17 +03:00
Fallback to tiff if libtiff is not found on macOS and Windows
This commit is contained in:
parent
af9b64a2cb
commit
749ec2aa16
8
setup.py
8
setup.py
|
@ -727,10 +727,10 @@ class pil_build_ext(build_ext):
|
|||
if feature.want("tiff"):
|
||||
_dbg("Looking for tiff")
|
||||
if _find_include_file(self, "tiff.h"):
|
||||
lib_tiff = _find_library_file(self, "tiff")
|
||||
if sys.platform in ["win32", "darwin"]:
|
||||
lib_tiff = _find_library_file(self, "libtiff")
|
||||
feature.tiff = lib_tiff
|
||||
feature.tiff = (
|
||||
sys.platform in ["win32", "darwin"]
|
||||
and _find_library_file(self, "libtiff")
|
||||
) or _find_library_file(self, "tiff")
|
||||
|
||||
if feature.want("freetype"):
|
||||
_dbg("Looking for freetype")
|
||||
|
|
Loading…
Reference in New Issue
Block a user