mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-27 10:26:19 +03:00
Merge pull request #1764 from wiredfool/setup-required
Fix the error reported when libz is not found
This commit is contained in:
commit
84e1971475
2
setup.py
2
setup.py
|
@ -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))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user