python-imagecodecs: update setup patch
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
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 @@
|
||||
diff -Naur imagecodecs-2021.1.11_orig/setup.py imagecodecs-2021.1.11/setup.py
|
||||
--- imagecodecs-2021.1.11_orig/setup.py 2021-01-12 05:06:22.000000000 +0100
|
||||
+++ imagecodecs-2021.1.11/setup.py 2021-01-12 11:06:37.866632200 +0100
|
||||
@@ -179,7 +179,7 @@
|
||||
"""Customize build for common platforms: recent Debian, arch..."""
|
||||
import platform
|
||||
|
||||
@@ -10,18 +10,20 @@ diff -Naur imagecodecs-2020.12.22_orig/setup.py imagecodecs-2020.12.22/setup.py
|
||||
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 @@
|
||||
@@ -191,13 +191,10 @@
|
||||
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['jpeg2k']['include_dirs'].extend(
|
||||
- ('/usr/include/openjpeg-2.3', '/usr/include/openjpeg-2.4')
|
||||
- )
|
||||
- EXTENSIONS['jpegxr']['include_dirs'].append('/usr/include/jxrlib')
|
||||
+ EXTENSIONS['jpeg2k']['include_dirs'].append(sys.prefix + '/include/openjpeg-2.3')
|
||||
+ EXTENSIONS['jpeg2k']['include_dirs'].extend(
|
||||
+ (sys.prefix + '/include/openjpeg-2.3', sys.prefix + '/include/openjpeg-2.4')
|
||||
+ )
|
||||
+ EXTENSIONS['jpegxr']['include_dirs'].append(sys.prefix + '/include/jxrlib')
|
||||
|
||||
|
||||
|
||||
@@ -32,7 +32,7 @@ source=("${_realname}-${pkgver}.tar.gz"::"https://github.com/cgohlke/imagecodecs
|
||||
"0003-mingw-fix-setup.patch")
|
||||
sha256sums=('5a52cf0368055dc9b1f98948deb245e2bbf23b40b74c8a03226a2d9044470754'
|
||||
'de24ec8970281639f8daf396477c9fbd34a12723c82568cd411247b074729425'
|
||||
'9aa110a221116b88412c9dfb1cc431021a4431fdf41287c46537466e651ceceb')
|
||||
'e84f5747fc44a519f4440f4fff817ae570fa76b678c26661820576cab763db34')
|
||||
|
||||
prepare() {
|
||||
cd "${srcdir}"
|
||||
|
||||
Reference in New Issue
Block a user