Package Details: python-imagecodecs 2021.2.26-1

Git Clone URL: https://aur.archlinux.org/python-imagecodecs.git (read-only, click to copy)
Package Base: python-imagecodecs
Description: Image transformation, compression, and decompression codecs
Upstream URL: https://github.com/cgohlke/imagecodecs
Licenses: BSD
Submitter: hottea
Maintainer: hottea (lilac)
Last Packager: lilac
Votes: 0
Popularity: 0.000000
First Submitted: 2020-06-20 14:41
Last Updated: 2021-02-27 17:50

Latest Comments

hottea commented on 2020-12-28 01:03

@BrainDamage Are you using ArchLinux? According to upstream code, they check if it's ArchLinux, and disable zopfli if true. For any further issue, report to upstream.

BrainDamage commented on 2020-12-27 15:59

well, it's evidently not disabled since it attempts to source the header

wouldn'tt t be simpler to just add a quick path fix in prepare() ?

hottea commented on 2020-12-26 01:46

@JDAturbo, according to https://github.com/cgohlke/imagecodecs/blob/98a6ab040335393865e40a754c43970ded9aeb9a/setup.py#L185, for ArchLinux, zopfli is disable. I'll remove zopfli from the deps. But if you'd like to add zopfli extension, you could modify this line to

cdef extern from 'zopfli.h':

JDAturbo commented on 2020-12-25 23:19

building 'imagecodecs._zopfli' extension
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fno-semantic-interposition -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -mtune=native -march=native -O3 -flto=20 -pipe -fno-plt -D_FORTIFY_SOURCE=2 -fPIC -Iimagecodecs -I/usr/include/python3.9 -I/usr/lib/python3.9/site-packages/numpy/core/include -c imagecodecs/_zopfli.c -o build/temp.linux-x86_64-3.9/imagecodecs/_zopfli.o
[...]
imagecodecs/_zopfli.c:617:10: fatal error: zopfli/zopfli.h: No such file or directory
  617 | #include "zopfli/zopfli.h"
      |          ^~~~~~~~~~~~~~~~~
compilation terminated.

zopfli.h is installed at /usr/include/zopfli.h.