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

@@ -8,27 +8,32 @@ 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['lerc'] # LERC library not available
del EXTENSIONS['lz4f'] # requires static linking
del EXTENSIONS['jpegxl'] # jpeg-xl library not available
del EXTENSIONS['brunsli'] # Brunsli library not available
del EXTENSIONS['mozjpeg'] # mozjpeg library not available
del EXTENSIONS['zfp'] # zfp library 0.5.5 not supported
EXTENSIONS['avif']['libraries'] = [
'avif',
'aom',
'dav1d',
'rav1e',
]
if sys.maxsize < 2**63 - 1:
# no zfp on 32-bit platforms
del EXTENSIONS['zfp']
# del EXTENSIONS['zfp']
# avif tests fail on 32-bit
del EXTENSIONS['avif']
# spng build fail on 32-bit
del EXTENSIONS['spng']
openjpeg_inc = subprocess.check_output(
['pkgconf', '--variable=includedir', 'libopenjp2'],
text=True,