Initialize openjpeg_version

This commit is contained in:
Eric Soroos 2014-05-30 15:08:21 -07:00
parent 87d10dcaeb
commit f4ddf1be97

View File

@ -101,7 +101,7 @@ class pil_build_ext(build_ext):
class feature:
zlib = jpeg = tiff = freetype = tcl = tk = lcms = webp = webpmux = None
jpeg2000 = None
jpeg2000 = openjpeg_version = None
required = []
def require(self, feat):
@ -611,7 +611,7 @@ class pil_build_ext(build_ext):
for option in options:
if option[0]:
version = ''
if len(option) >= 3:
if len(option) >= 3 and option[2]:
version = ' (%s)' % option[2]
print("--- %s support available%s" % (option[1], version))
else: