Merge pull request #1501 from hansmosh/jpeg-install

Fix Exception when requiring jpeg
This commit is contained in:
wiredfool 2015-10-24 06:15:41 -07:00
commit fd6df09b53

View File

@ -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.'