14
0

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
This commit is contained in:
2022-10-10 07:26:06 +00:00
committed by Git OBS Bridge
parent c84e56f8fa
commit ca587188c8
6 changed files with 136 additions and 36 deletions

View File

@@ -1,13 +1,29 @@
Index: imagecodecs-2021.6.8/setup.py
Index: imagecodecs-2022.9.26/setup.py
===================================================================
--- imagecodecs-2021.6.8.orig/setup.py
+++ imagecodecs-2021.6.8/setup.py
@@ -105,7 +105,7 @@ def ext(**kwargs):
--- 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)
}
OPTIONS = {
- 'cythonize': 'PyPy' in sys.version, # or sys.version_info >= (3, 10)
+ 'cythonize': True,
'include_dirs': ['imagecodecs'],
'library_dirs': [],
'libraries': ['m'] if sys.platform != 'win32' else [],
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']),