mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-05-05 00:13:42 +03:00
Link openjpeg2 statically on Windows
This commit is contained in:
parent
af4424ebf1
commit
e7e103b1a5
2
setup.py
2
setup.py
|
@ -452,6 +452,8 @@ class pil_build_ext(build_ext):
|
||||||
if feature.jpeg2000:
|
if feature.jpeg2000:
|
||||||
libs.append(feature.jpeg2000)
|
libs.append(feature.jpeg2000)
|
||||||
defs.append(("HAVE_OPENJPEG", None))
|
defs.append(("HAVE_OPENJPEG", None))
|
||||||
|
if sys.platform == "win32":
|
||||||
|
defs.append(("OPJ_STATIC", None))
|
||||||
if feature.zlib:
|
if feature.zlib:
|
||||||
libs.append(feature.zlib)
|
libs.append(feature.zlib)
|
||||||
defs.append(("HAVE_LIBZ", None))
|
defs.append(("HAVE_LIBZ", None))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user