14
0

Accepting request 1074234 from home:bnavigator:branches:devel:languages:python

- 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
This commit is contained in:
2023-03-26 16:57:03 +00:00
committed by Git OBS Bridge
parent 3468cf65fd
commit 9b87025fae
6 changed files with 70 additions and 23 deletions

View File

@@ -9,11 +9,9 @@ def customize_build(EXTENSIONS, OPTIONS):
includedir = os.getenv("INCDIR",'') + '/'
del EXTENSIONS['apng'] # png-apng library not available
del EXTENSIONS['blosc2'] # blosc2 library not available
del EXTENSIONS['brunsli'] # graphics/brunsli not in Factory
del EXTENSIONS['jetraw'] # jetraw library not available
del EXTENSIONS['jpeg12'] # jpeg12 requires custom build
del EXTENSIONS['jpegxl'] # jpeg-xl 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
@@ -32,6 +30,11 @@ def customize_build(EXTENSIONS, OPTIONS):
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'],
@@ -39,6 +42,7 @@ def customize_build(EXTENSIONS, OPTIONS):
).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']