diff -Naur imagecodecs-2021.1.11_orig/setup.py imagecodecs-2021.1.11/setup.py --- imagecodecs-2021.1.11_orig/setup.py 2021-01-12 05:06:22.000000000 +0100 +++ imagecodecs-2021.1.11/setup.py 2021-01-12 11:06:37.866632200 +0100 @@ -179,7 +179,7 @@ """Customize build for common platforms: recent Debian, arch...""" import platform - del EXTENSIONS['avif'] # libavif library not commonly available + # del EXTENSIONS['avif'] # libavif library not commonly available del EXTENSIONS['jpeg12'] # jpeg12 requires custom build del EXTENSIONS['lerc'] # LERC library not commonly available del EXTENSIONS['lz4f'] # requires static linking @@ -191,13 +191,10 @@ del EXTENSIONS['jpegxl'] # Brunsli library not commonly available del EXTENSIONS['zfp'] # ZFP library not commonly available - if sys.platform == 'win32': - EXTENSIONS['bz2']['libraries'] = ['libbz2'] - else: - EXTENSIONS['jpeg2k']['include_dirs'].extend( - ('/usr/include/openjpeg-2.3', '/usr/include/openjpeg-2.4') - ) - EXTENSIONS['jpegxr']['include_dirs'].append('/usr/include/jxrlib') + EXTENSIONS['jpeg2k']['include_dirs'].extend( + (sys.prefix + '/include/openjpeg-2.3', sys.prefix + '/include/openjpeg-2.4') + ) + EXTENSIONS['jpegxr']['include_dirs'].append(sys.prefix + '/include/jxrlib') def customize_build_cg(EXTENSIONS, OPTIONS):