From 37f14574e0e83d2edab61a3d037696b11fe1986a Mon Sep 17 00:00:00 2001 From: wiredfool Date: Tue, 25 Mar 2014 21:02:07 -0700 Subject: [PATCH] alternate name for webp libraries in 0.4.0 --- setup.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index a8ff2e762..b97763f7c 100644 --- a/setup.py +++ b/setup.py @@ -401,8 +401,11 @@ class pil_build_ext(build_ext): if feature.want('webp'): if (_find_include_file(self, "webp/encode.h") and _find_include_file(self, "webp/decode.h")): - if _find_library_file(self, "webp"): # in googles precompiled zip it is call "libwebp" + if _find_library_file(self, "webp"): feature.webp = "webp" + elif _find_library_file(self, "libwebp"): + # in googles precompiled zip, or 0.4.0 it is call "libwebp" + feature.webp = "libwebp" if feature.want('webpmux'): if (_find_include_file(self, "webp/mux.h") and