Closed legoktm closed 2 years ago
Related is https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=997440, in which running python setup.py clean
actually triggers cythonization and makes the checkout dirty. I think the answer is to do something like https://github.com/Unidata/cftime/issues/91, which is basically what my patch is but more complete.
I found the cftime example via Debian codesearch, along with https://sources.debian.org/src/ceph/16.2.7+ds-2/src/pybind/cephfs/setup.py/?hl=156#L174 so I guess that's the correct approach?
Will work on a patch.
In Debian packaging, the clean step, which runs
python setup.py clean
runs before dependencies are installed, so libzim.so isn't present yet and setup.py errors out saying it can't be found.For now I added a patch to the Debian package that does:
I'm not sure if there's a better way to check whether the clean step is being invoked or not.