1
0
python-imagecodecs/always-cythonize.patch
Dirk Mueller 9b87025fae 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
2023-03-26 16:57:03 +00:00

30 lines
991 B
Diff

Index: imagecodecs-2023.3.16/setup.py
===================================================================
--- imagecodecs-2023.3.16.orig/setup.py
+++ imagecodecs-2023.3.16/setup.py
@@ -84,7 +84,7 @@ def ext(**kwargs):
extra_link_args=[],
depends=[],
cython_compile_time_env={},
- cythonize=False,
+ cythonize=True,
)
d.update(kwargs)
return d
@@ -105,13 +105,13 @@ OPTIONS = {
'extra_link_args': [], # ['-debug:full']
'depends': ['imagecodecs/_shared.pxd'],
'cython_compile_time_env': {},
- 'cythonize': False, # sys.version_info >= (3, 11)
+ 'cythonize': True, # sys.version_info >= (3, 11)
}
EXTENSIONS = {
'shared': ext(
cython_compile_time_env={'IS_PYPY': 'PyPy' in sys.version},
- cythonize='PyPy' in sys.version,
+ cythonize=True, #'PyPy' in sys.version,
),
'imcd': ext(sources=['imagecodecs/imcd.c']),
'aec': ext(libraries=['aec']),