mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-10 19:56:47 +03:00
Merge pull request #1501 from hansmosh/jpeg-install
Fix Exception when requiring jpeg
This commit is contained in:
commit
fd6df09b53
4
setup.py
4
setup.py
|
@ -506,9 +506,9 @@ class pil_build_ext(build_ext):
|
|||
|
||||
for f in feature:
|
||||
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'
|
||||
+ ' using --disable-%s, aborting' %
|
||||
' using --disable-%s, aborting' %
|
||||
(f, f))
|
||||
raise ValueError(
|
||||
'--enable-%s requested but %s not found, aborting.'
|
||||
|
|
Loading…
Reference in New Issue
Block a user