Merge pull request #1764 from wiredfool/setup-required

Fix the error reported when libz is not found
This commit is contained in:
Hugo 2016-03-08 22:50:30 +02:00
commit 84e1971475

View File

@ -510,7 +510,7 @@ class pil_build_ext(build_ext):
for f in feature: for f in feature:
if not getattr(feature, f) and feature.require(f): if not getattr(feature, f) and feature.require(f):
if f in ('jpeg', 'libz'): if f in ('jpeg', 'zlib'):
raise ValueError('%s is required unless explicitly disabled' raise ValueError('%s is required unless explicitly disabled'
' using --disable-%s, aborting' % ' using --disable-%s, aborting' %
(f, f)) (f, f))