mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-12 10:16:17 +03:00
fix #2848
This commit is contained in:
parent
d2f90d6cac
commit
82204d54cf
4
.github/workflows/test-windows.yml
vendored
4
.github/workflows/test-windows.yml
vendored
|
@ -432,6 +432,7 @@ jobs:
|
|||
${{ matrix.package }}-lcms2 \
|
||||
${{ matrix.package }}-libwebp \
|
||||
${{ matrix.package }}-libjpeg-turbo \
|
||||
${{ matrix.package }}-openjpeg2 \
|
||||
${{ matrix.package }}-libimagequant \
|
||||
${{ matrix.package }}-libraqm \
|
||||
${{ matrix.package }}-ghostscript \
|
||||
|
@ -444,8 +445,7 @@ jobs:
|
|||
- name: Build Pillow
|
||||
run: |
|
||||
# libtiff is unable to open files
|
||||
# OpenJPEG fails due to link error (#2848)
|
||||
python3 setup.py build_ext --disable-tiff --disable-jpeg2000 install
|
||||
python3 setup.py build_ext --disable-tiff install
|
||||
|
||||
- name: Test Pillow
|
||||
run: |
|
||||
|
|
2
setup.py
2
setup.py
|
@ -711,7 +711,7 @@ class pil_build_ext(build_ext):
|
|||
if feature.jpeg2000:
|
||||
libs.append(feature.jpeg2000)
|
||||
defs.append(("HAVE_OPENJPEG", None))
|
||||
if sys.platform == "win32":
|
||||
if sys.platform == "win32" and not PLATFORM_MINGW:
|
||||
defs.append(("OPJ_STATIC", None))
|
||||
if feature.zlib:
|
||||
libs.append(feature.zlib)
|
||||
|
|
Loading…
Reference in New Issue
Block a user