mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-13 02:36:17 +03:00
Initialize openjpeg_version
This commit is contained in:
parent
87d10dcaeb
commit
f4ddf1be97
4
setup.py
4
setup.py
|
@ -101,7 +101,7 @@ class pil_build_ext(build_ext):
|
||||||
|
|
||||||
class feature:
|
class feature:
|
||||||
zlib = jpeg = tiff = freetype = tcl = tk = lcms = webp = webpmux = None
|
zlib = jpeg = tiff = freetype = tcl = tk = lcms = webp = webpmux = None
|
||||||
jpeg2000 = None
|
jpeg2000 = openjpeg_version = None
|
||||||
required = []
|
required = []
|
||||||
|
|
||||||
def require(self, feat):
|
def require(self, feat):
|
||||||
|
@ -611,7 +611,7 @@ class pil_build_ext(build_ext):
|
||||||
for option in options:
|
for option in options:
|
||||||
if option[0]:
|
if option[0]:
|
||||||
version = ''
|
version = ''
|
||||||
if len(option) >= 3:
|
if len(option) >= 3 and option[2]:
|
||||||
version = ' (%s)' % option[2]
|
version = ' (%s)' % option[2]
|
||||||
print("--- %s support available%s" % (option[1], version))
|
print("--- %s support available%s" % (option[1], version))
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user