Skip to content

Commit

Permalink
Fallback to tiff if libtiff is not found on macOS and Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
radarhere authored and mrbean-bremen committed Apr 26, 2024
1 parent 0e69afe commit 747a9b9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -724,10 +724,10 @@ def build_extensions(self):
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")
Expand Down

0 comments on commit 747a9b9

Please sign in to comment.