On 2024-06-03 08:51, Andreas Beckmann wrote:
Followup-For: Bug #998820

Then we also have

/usr/lib/python3/dist-packages/build/lib/doc/conf.py
                                          ^^^
e.g. nxtomo 1.2.3-2

usr/lib/python3/dist-packages/build/lib/docs/conf.py
                                         ^^^^
e.g. pipenv 2023.12.1+ds-1

Just thinking out loud: would it make sense to warn about all the files that are installed under /usr/lib/python3/dist-packages/, but outside the package directory? E.g. all files from python3-nxtomo in /usr/lib/python3/dist-packages/, but outside /usr/lib/python3/dist-packages/nxtomo/. I guess such approach may produce false-positives for plugin packages.

Another solution would be to simply warn about specific paths, such as:

/usr/lib/python3/dist-packages/build/*
/usr/lib/python3/dist-packages/docs/*
/usr/lib/python3/dist-packages/__init__.py
...

Does it make sense to name lintian tag 'python-package-installs-overly-generic-path'?

Best,
Andrius

Reply via email to