Hi, Sorry, it took me a while to figure this one out.
On 10/23/21 13:27, Lucas Nussbaum wrote:
dh clean --with python3 --buildsystem=pybuild dh_auto_clean -O--buildsystem=pybuild I: pybuild base:232: python3.9 setup.py clean [!] Warning: Couldn't find zim/*.h in ./include! Hint: You can install them from source from https://github.com/openzim/libzim or download a prebuilt release's headers into ./include/zim/*.h (or set CFLAGS='-I<library_path>/include') Compiling libzim/wrapper.pyx because it depends on /usr/lib/python3/dist-packages/Cython/Includes/libcpp/string.pxd. [1/1] Cythonizing libzim/wrapper.pyx
This seems to be the issue, it is running Cython during the clean step, which dirties source tree, ironic. I codesearched and found that other packages modify setup.py to skip cythonize during clean and other steps, e.g. https://github.com/Unidata/cftime/issues/91. Will work on a patch for this and upstream it.
-- Kunal