python-imagecodecs: enable lz4f extension

This commit is contained in:
Miloš Komarčević
2021-01-13 11:32:04 +01:00
parent a8279c07be
commit 4f10f31798
2 changed files with 5 additions and 7 deletions

View File

@@ -1,21 +1,19 @@
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 15:05:51.063607600 +0100
@@ -179,7 +179,7 @@
+++ imagecodecs-2021.1.11/setup.py 2021-01-13 11:00:22.919158700 +0100
@@ -179,25 +179,19 @@
"""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
@@ -187,17 +187,14 @@
- del EXTENSIONS['lz4f'] # requires static linking
if 'arch' in platform.platform():
del EXTENSIONS['zopfli'] # zopfli/zopfli.h does not exist
else:
- del EXTENSIONS['jpegls'] # CharLS 2.1 library not commonly available
+ # del EXTENSIONS['jpegls'] # CharLS 2.1 library not commonly available
del EXTENSIONS['jpegxl'] # Brunsli library not commonly available
del EXTENSIONS['zfp'] # ZFP library not commonly available

View File

@@ -33,7 +33,7 @@ source=("${_realname}-${pkgver}.tar.gz"::"https://github.com/cgohlke/imagecodecs
"0003-mingw-fix-setup.patch")
sha256sums=('5a52cf0368055dc9b1f98948deb245e2bbf23b40b74c8a03226a2d9044470754'
'de24ec8970281639f8daf396477c9fbd34a12723c82568cd411247b074729425'
'4ac16ec6fe8e25de4766866ed30f968ae629b6b667ae07ef0e98429f75a32a4b')
'479cb761d694885c156ed4381a6701953ee4f7d792e4ae0f3bb395566c219411')
prepare() {
cd "${srcdir}"