This commit is contained in:
nulano 2020-05-24 01:07:42 +02:00
parent d2f90d6cac
commit 82204d54cf
2 changed files with 3 additions and 3 deletions

View File

@ -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: |

View File

@ -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)