Skip to content

Commit 0450f99

Browse files
authored
Search for libtiff library file first on Windows and macOS (#9034)
2 parents acd8b0c + e1ee8af commit 0450f99

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -753,12 +753,12 @@ def build_extensions(self) -> None:
753753
if feature.want("tiff"):
754754
_dbg("Looking for tiff")
755755
if _find_include_file(self, "tiff.h"):
756-
if _find_library_file(self, "tiff"):
757-
feature.set("tiff", "tiff")
758756
if sys.platform in ["win32", "darwin"] and _find_library_file(
759757
self, "libtiff"
760758
):
761759
feature.set("tiff", "libtiff")
760+
elif _find_library_file(self, "tiff"):
761+
feature.set("tiff", "tiff")
762762

763763
if feature.want("freetype"):
764764
_dbg("Looking for freetype")

0 commit comments

Comments
 (0)