mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-28 02:04:36 +03:00
Fix Exception when installing jpeg
This commit is contained in:
parent
497fe30e50
commit
27ced01022
4
setup.py
4
setup.py
|
@ -506,9 +506,9 @@ 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 feature in ('jpeg', 'libz'):
|
if f in ('jpeg', 'libz'):
|
||||||
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))
|
||||||
raise ValueError(
|
raise ValueError(
|
||||||
'--enable-%s requested but %s not found, aborting.'
|
'--enable-%s requested but %s not found, aborting.'
|
||||||
|
|
Loading…
Reference in New Issue
Block a user