mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-07-02 19:03:24 +03:00
Search for libtiff library file first on Windows and macOS (#9034)
This commit is contained in:
commit
0450f99596
4
setup.py
4
setup.py
|
@ -753,12 +753,12 @@ class pil_build_ext(build_ext):
|
|||
if feature.want("tiff"):
|
||||
_dbg("Looking for tiff")
|
||||
if _find_include_file(self, "tiff.h"):
|
||||
if _find_library_file(self, "tiff"):
|
||||
feature.set("tiff", "tiff")
|
||||
if sys.platform in ["win32", "darwin"] and _find_library_file(
|
||||
self, "libtiff"
|
||||
):
|
||||
feature.set("tiff", "libtiff")
|
||||
elif _find_library_file(self, "tiff"):
|
||||
feature.set("tiff", "tiff")
|
||||
|
||||
if feature.want("freetype"):
|
||||
_dbg("Looking for freetype")
|
||||
|
|
Loading…
Reference in New Issue
Block a user