Files
MINGW-packages/mingw-w64-python-imagecodecs/0003-mingw-fix-setup.patch
2020-12-25 20:26:43 +01:00

29 lines
1.3 KiB
Diff

diff -Naur imagecodecs-2020.12.22_orig/setup.py imagecodecs-2020.12.22/setup.py
--- imagecodecs-2020.12.22_orig/setup.py 2020-12-23 17:21:01.000000000 +0100
+++ imagecodecs-2020.12.22/setup.py 2020-12-23 16:20:21.213615700 +0100
@@ -176,7 +176,7 @@
"""Customize build for common platforms: recent Debian, arch..."""
import platform
- del EXTENSIONS['avif'] # libavif library not commonly available
+ # del EXTENSIONS['avif'] # libavif library not commonly available
del EXTENSIONS['jpeg12'] # jpeg12 requires custom build
del EXTENSIONS['lerc'] # LERC library not commonly available
del EXTENSIONS['lz4f'] # requires static linking
@@ -188,13 +188,8 @@
del EXTENSIONS['jpegxl'] # Brunsli library not commonly available
del EXTENSIONS['zfp'] # ZFP library not commonly available
- if sys.platform == 'win32':
- EXTENSIONS['bz2']['libraries'] = ['libbz2']
- else:
- EXTENSIONS['jpeg2k']['include_dirs'].append(
- '/usr/include/openjpeg-2.3'
- )
- EXTENSIONS['jpegxr']['include_dirs'].append('/usr/include/jxrlib')
+ EXTENSIONS['jpeg2k']['include_dirs'].append(sys.prefix + '/include/openjpeg-2.3')
+ EXTENSIONS['jpegxr']['include_dirs'].append(sys.prefix + '/include/jxrlib')
def customize_build_cg(EXTENSIONS, OPTIONS):