forked from pool/python-imagecodecs
- Update to 2023.3.16
* Pass 6884 tests.
* Require libjpeg-turbo 2.1.91 (3.0 beta) and c-blosc2 2.7.1.
* Add experimental type hints.
* Add SZIP codec via libaec library.
* Use Zstd streaming API to decode blocks with unknown
decompressed size.
* Remove unused level, index, and numthreads parameters
(breaking).
* Make AEC and BLOSC constants enums (breaking).
* Capitalize numcodecs class names (breaking).
* Remove JPEG12 codec (breaking; use JPEG8 instead).
* Encode and decode lossless and 12-bit JPEG with JPEG8 codec by
default.
* Remove JPEGSOF3 fallback in JPEG codec.
* Fix slow IFD seeking with libtiff 4.5.
* Fixes for Cython 3.0.
- Release 2023.1.23
* Require libjxl 0.8.
* Change mapping of level to distance parameter in jpegxl_encode.
* Add option to specify bitspersample in jpegxl_encode.
* Add option to pass de/linearize tables to LJPEG codec.
* Fix lj92 decoder for SSSS=16 (#59).
* Prefer ljpeg over jpegsof3 codec.
* Add option to specify AVIF encoder codec.
* Support LERC with Zstd or Deflate compression.
* Squeeze chunk arrays by default in numcodecs image compression
codecs.
- Skip testing with dask on python 3.11: no numba yet
- Add blosc2, SVT-AV1, jpegxl (libjxl)), SZIP (libsz2)
OBS-URL: https://build.opensuse.org/request/show/1074234
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-imagecodecs?expand=0&rev=21
49 lines
1.6 KiB
Python
49 lines
1.6 KiB
Python
# openSUSE extension setup to build python-imagecodecs
|
|
|
|
import os
|
|
import subprocess
|
|
import sys
|
|
|
|
def customize_build(EXTENSIONS, OPTIONS):
|
|
|
|
includedir = os.getenv("INCDIR",'') + '/'
|
|
|
|
del EXTENSIONS['apng'] # png-apng library not available
|
|
del EXTENSIONS['brunsli'] # graphics/brunsli not in Factory
|
|
del EXTENSIONS['jetraw'] # jetraw library not available
|
|
del EXTENSIONS['jpeg8'] # jpeg8 / libjegturbo 2.1.91 is beta and not available
|
|
del EXTENSIONS['lerc'] # LERC library not available
|
|
del EXTENSIONS['lz4f'] # requires static linking
|
|
del EXTENSIONS['mozjpeg'] # Win32 only
|
|
|
|
EXTENSIONS['avif']['libraries'] = [
|
|
'avif',
|
|
'aom',
|
|
'dav1d',
|
|
'rav1e',
|
|
]
|
|
|
|
if sys.maxsize < 2**63 - 1:
|
|
# no zfp on 32-bit platforms
|
|
del EXTENSIONS['zfp']
|
|
# avif tests fail on 32-bit
|
|
del EXTENSIONS['avif']
|
|
# spng build fail on 32-bit
|
|
del EXTENSIONS['spng']
|
|
else:
|
|
EXTENSIONS['avif']['libraries'].extend([
|
|
'SvtAv1Enc',
|
|
'SvtAv1Dec',
|
|
])
|
|
|
|
openjpeg_inc = subprocess.check_output(
|
|
['pkgconf', '--variable=includedir', 'libopenjp2'],
|
|
text=True,
|
|
).strip()
|
|
EXTENSIONS['jpeg2k']['include_dirs'].append(openjpeg_inc)
|
|
EXTENSIONS['jpegxr']['include_dirs'].append(includedir + 'jxrlib')
|
|
EXTENSIONS['jpegxl']['libraries'] = ['jxl', 'jxl_threads']
|
|
EXTENSIONS['rcomp']['include_dirs'].append(includedir + 'cfitsio')
|
|
EXTENSIONS['zopfli']['include_dirs'].append(includedir + 'zopfli')
|
|
EXTENSIONS['lzham']['libraries'] = ['lzhamdll']
|
|
|