Skip to content

Commit 1b827cb

Browse files
committed
Search for libtiff library file first on Windows and macOS
1 parent 2954964 commit 1b827cb

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
@@ -754,12 +754,12 @@ def build_extensions(self) -> None:
754754
if feature.want("tiff"):
755755
_dbg("Looking for tiff")
756756
if _find_include_file(self, "tiff.h"):
757-
if _find_library_file(self, "tiff"):
758-
feature.set("tiff", "tiff")
759757
if sys.platform in ["win32", "darwin"] and _find_library_file(
760758
self, "libtiff"
761759
):
762760
feature.set("tiff", "libtiff")
761+
elif _find_library_file(self, "tiff"):
762+
feature.set("tiff", "tiff")
763763

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

0 commit comments

Comments
 (0)