From e94878c8a8067861ebf8b667a2415a23e2a4355e Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Sat, 15 Sep 2018 06:26:40 +1000 Subject: [PATCH] Simplified duplicate code --- setup.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/setup.py b/setup.py index 935f3d1cc..ba1fd2219 100755 --- a/setup.py +++ b/setup.py @@ -524,10 +524,7 @@ class pil_build_ext(build_ext): if _find_include_file(self, 'tiff.h'): if _find_library_file(self, "tiff"): feature.tiff = "tiff" - if (sys.platform == "win32" and - _find_library_file(self, "libtiff")): - feature.tiff = "libtiff" - if (sys.platform == "darwin" and + if (sys.platform in ["win32", "darwin"] and _find_library_file(self, "libtiff")): feature.tiff = "libtiff"