forked from pool/python-imagecodecs
Dirk Mueller
ca587188c8
- Update imagecodecs_distributor_setup.py to skip unbuildable exts - Refresh always-cythonize.patch - Enable s390x & ppc64 builds - Update to v2022.9.26 OBS-URL: https://build.opensuse.org/request/show/1009084 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-imagecodecs?expand=0&rev=17
30 lines
969 B
Diff
30 lines
969 B
Diff
Index: imagecodecs-2022.9.26/setup.py
|
|
===================================================================
|
|
--- imagecodecs-2022.9.26.orig/setup.py
|
|
+++ imagecodecs-2022.9.26/setup.py
|
|
@@ -94,7 +94,7 @@ def ext(**kwargs):
|
|
extra_compile_args=[],
|
|
extra_link_args=[],
|
|
cython_compile_time_env={},
|
|
- cythonize=False,
|
|
+ cythonize=True,
|
|
)
|
|
d.update(kwargs)
|
|
return d
|
|
@@ -114,13 +114,13 @@ OPTIONS = {
|
|
'extra_compile_args': [],
|
|
'extra_link_args': [],
|
|
'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']),
|