Package: python3-fastchunking
Version: 0.0.3-5
Severity: serious
Justification: Breaks unrelated software
X-Debbugs-Cc: [email protected]

Dear Maintainer,

The installation location for Python modules is a shared namespace
across all modules; everything ends up in /usr/lib/python3/dist-packages

Python modules should normally try to contain all their files within a
top-level namespace directory and need to not take generic names that
are likely to clash with other packages.

fastchunking ships the following files:

python3-fastchunking: 
/usr/lib/python3/dist-packages/fastchunking-0.0.3.egg-info/PKG-INFO
python3-fastchunking: 
/usr/lib/python3/dist-packages/fastchunking-0.0.3.egg-info/dependency_links.txt
python3-fastchunking: 
/usr/lib/python3/dist-packages/fastchunking-0.0.3.egg-info/requires.txt
python3-fastchunking: 
/usr/lib/python3/dist-packages/fastchunking-0.0.3.egg-info/top_level.txt
python3-fastchunking: /usr/lib/python3/dist-packages/fastchunking/__init__.py
python3-fastchunking: 
/usr/lib/python3/dist-packages/fastchunking/_rabinkarprh.cpython-314-x86_64-linux-gnu.so
python3-fastchunking: 
/usr/lib/python3/dist-packages/fastchunking/_rabinkarprh.cpython-315-x86_64-linux-gnu.so
python3-fastchunking: /usr/lib/python3/dist-packages/fastchunking/benchmark.py
python3-fastchunking: /usr/lib/python3/dist-packages/fastchunking/test.py

python3-fastchunking: /usr/lib/python3/dist-packages/lib/__init__.py
python3-fastchunking: /usr/lib/python3/dist-packages/lib/rabinkarp_gen.py

The first group is all good and sensible. The 'lib' module is not
acceptable in the shared namespace of dist-packages.

Looking at the contents of this directory, it appears to be the source
code and build machinery for the .so that is shipped by the module. In
that case, I suspect that it should not be included in the binary
package and it is mistakenly included into the Python distributable by
the following line in setup.py

    packages=['fastchunking', 'lib'],

Removing 'lib' from that list wouuld be enough to fix this.

By fixing it in setup.py (rather than trying to remove the directory
from d/rules after the build), the egg metadata in top_level.txt will
also only carry 'fastchunking' rather than also including 'lib' as it
currently does.

regards
Stuart

Reply via email to