mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-11 17:56:18 +03:00
Defer initialization of openjpeg_version
This commit is contained in:
parent
6dda7601af
commit
bc2c7bee70
3
setup.py
3
setup.py
|
@ -101,7 +101,7 @@ class pil_build_ext(build_ext):
|
|||
|
||||
class feature:
|
||||
zlib = jpeg = tiff = freetype = tcl = tk = lcms = webp = webpmux = None
|
||||
jpeg2000 = openjpeg_version = None
|
||||
jpeg2000 = None
|
||||
required = []
|
||||
|
||||
def require(self, feat):
|
||||
|
@ -383,6 +383,7 @@ class pil_build_ext(build_ext):
|
|||
_find_library_file(self, "libjpeg")):
|
||||
feature.jpeg = "libjpeg" # alternative name
|
||||
|
||||
feature.openjpeg_version = None
|
||||
if feature.want('jpeg2000'):
|
||||
best_version = None
|
||||
best_path = None
|
||||
|
|
Loading…
Reference in New Issue
Block a user