Initial Fedora package
This commit is contained in:
parent
3a174278a8
commit
249dc27019
4 changed files with 202 additions and 0 deletions
27
imagecodecs_distributor_setup.py
Normal file
27
imagecodecs_distributor_setup.py
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
def customize_build(EXTENSIONS, OPTIONS):
|
||||
"""Customize build for Fedora"""
|
||||
|
||||
del EXTENSIONS['apng'] # apng patch not commonly available
|
||||
del EXTENSIONS['bitshuffle'] # Uses 3rdparty source
|
||||
del EXTENSIONS['brunsli'] # not available on Fedora
|
||||
del EXTENSIONS['jetraw'] # commercial
|
||||
del EXTENSIONS['jpeg12'] # jpeg12 requires custom build
|
||||
del EXTENSIONS['jpegls'] # Fedora's charls is too old at the moment
|
||||
del EXTENSIONS['jpegxl'] # requires static linking?
|
||||
del EXTENSIONS['ljpeg'] # Uses 3rdparty source
|
||||
del EXTENSIONS['lz4f'] # requires static linking
|
||||
del EXTENSIONS['lzf'] # Uses 3rdparty source
|
||||
del EXTENSIONS['mozjpeg'] # Win32 only
|
||||
del EXTENSIONS['pglz'] # Uses 3rdparty source
|
||||
del EXTENSIONS['qoi'] # Uses 3rdparty source
|
||||
del EXTENSIONS['rgbe'] # Uses 3rdparty source
|
||||
del EXTENSIONS['spng'] # Uses 3rdparty source
|
||||
EXTENSIONS['jpeg2k']['include_dirs'].extend(
|
||||
(
|
||||
'/usr/include/openjpeg-2.4',
|
||||
'/usr/include/openjpeg-2.5',
|
||||
)
|
||||
)
|
||||
del EXTENSIONS['jpeg2k'] # Uses 3rdparty source to use private function - https://github.com/cgohlke/imagecodecs/issues/77
|
||||
EXTENSIONS['jpegxr']['include_dirs'].append('/usr/include/jxrlib')
|
||||
EXTENSIONS['zopfli']['include_dirs'].append('/usr/include/zopfli')
|
||||
Loading…
Add table
Add a link
Reference in a new issue