1
0
python-imagecodecs/always-cythonize.patch
Dirk Mueller ca587188c8 Accepting request 1009084 from home:jayvdb:branches:devel:languages:python
- 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
2022-10-10 07:26:06 +00:00

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']),