From 27ced010226c021702b4e56baa87a3a571f0da67 Mon Sep 17 00:00:00 2001 From: Chris Brackert Date: Thu, 22 Oct 2015 16:48:03 -0700 Subject: [PATCH] Fix Exception when installing jpeg --- setup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 101fecd5e..0397c5526 100644 --- a/setup.py +++ b/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.'