Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.maint.python > #17322 > unrolled thread
| Started by | Stefano Rivera <stefanor@debian.org> |
|---|---|
| First post | 2026-01-04 14:00 +0100 |
| Last post | 2026-01-04 21:10 +0100 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.debian.maint.python
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: Need help with Lintian warning for pyrle - python module in wrong location (Was: work on pyrle) Stefano Rivera <stefanor@debian.org> - 2026-01-04 14:00 +0100
Re: Need help with Lintian warning for pyrle - python module in wrong location (Was: work on pyrle) Pieter Lenaerts <plenae@disroot.org> - 2026-01-04 21:10 +0100
| From | Stefano Rivera <stefanor@debian.org> |
|---|---|
| Date | 2026-01-04 14:00 +0100 |
| Subject | Re: Need help with Lintian warning for pyrle - python module in wrong location (Was: work on pyrle) |
| Message-ID | <M9vSa-7ZrD-13@gated-at.bofh.it> |
Hi Aryan (2026.01.04_11:15:30_+0000) >I've been working on updating pyrle for a while. Me, plenae and jcfp >are currently working on it but we seem to have hit a roadblock when >it comes to the lintian warning: > >W: python3-pyrle: python-module-in-wrong-location >usr/lib/python3.14/dist-packages/pyrle-0.0.42.dist-info -> >usr/lib/python3/dist-packages/pyrle-0.0.42.dist-info As Colin pointed out on IRC, dh_python3 tells you that it's having trouble, in the build log: dh_python3 -O--buildsystem=pybuild W: dh_python3 fs:140: No merge driver for dist-info file top_level.txt That's your issue. What's going on there? $ cat debian/python3-pyrle/usr/lib/python3/dist-packages/pyrle-0.0.42.dist-info/top_level.txt build debian graphs pyrle tests $ cat debian/python3-pyrle/usr/lib/python3.14/dist-packages/pyrle-0.0.42.dist-info/top_level.txt debian graphs pyrle tests So, dh_python3 couldn't merge them because they differed and it didn't know how to handle that. Why did they differ? pyproject.toml contains: [tool.setuptools.packages.find] where = ["."] That's very broad, it's trying to say everything it can find in the source directory is part of the package. This is including the debian directory, tests, test data, and a temporary build directory. This is all wrong. I'd suggest patching pyproject.toml to be a little more selective. I think that file should only contain "pyrle". Then there's also: W: dh_python3 fs:143: Paths differ: debian/python3-pyrle/usr/lib/python3.14/dist-packages/.hypothesis/constants/f31ba8925e528ce5 and debian/python3-pyrle/usr/lib/python3/dist-packages/.hypothesis/constants/f31ba8925e528ce5 W: dh_python3 fs:143: Paths differ: debian/python3-pyrle/usr/lib/python3.14/dist-packages/.hypothesis/constants/b66b8480a5e12b45 and debian/python3-pyrle/usr/lib/python3/dist-packages/.hypothesis/constants/b66b8480a5e12b45 W: dh_python3 fs:143: Paths differ: debian/python3-pyrle/usr/lib/python3.14/dist-packages/.hypothesis/constants/2007fed8db62a98f and debian/python3-pyrle/usr/lib/python3/dist-packages/.hypothesis/constants/2007fed8db62a98f W: dh_python3 fs:143: Paths differ: debian/python3-pyrle/usr/lib/python3.14/dist-packages/.hypothesis/constants/1de211b74552257e and debian/python3-pyrle/usr/lib/python3/dist-packages/.hypothesis/constants/1de211b74552257e W: dh_python3 fs:143: Paths differ: debian/python3-pyrle/usr/lib/python3.14/dist-packages/.hypothesis/constants/67b0a8ccf18bf5d2 and debian/python3-pyrle/usr/lib/python3/dist-packages/.hypothesis/constants/67b0a8ccf18bf5d2 W: dh_python3 fs:143: Paths differ: debian/python3-pyrle/usr/lib/python3.14/dist-packages/.hypothesis/constants/da39a3ee5e6b4b0d and debian/python3-pyrle/usr/lib/python3/dist-packages/.hypothesis/constants/da39a3ee5e6b4b0d You don't want to be shipping .hypothesis. I added a commit to fix this. Stefano -- Stefano Rivera http://tumbleweed.org.za/ +1 415 683 3272
[toc] | [next] | [standalone]
| From | Pieter Lenaerts <plenae@disroot.org> |
|---|---|
| Date | 2026-01-04 21:10 +0100 |
| Subject | Re: Need help with Lintian warning for pyrle - python module in wrong location (Was: work on pyrle) |
| Message-ID | <M9CAh-84a0-1@gated-at.bofh.it> |
| In reply to | #17322 |
I've added autopkgtest and started using pytest-xdist, but ... Op 4/01/2026 om 13:51 schreef Stefano Rivera: > [tool.setuptools.packages.find] > where = ["."] Narrowing the package discovery to pyrle brings in hypothesis errors... Have upstream kept hypothesis in an old version in their source tree?
[toc] | [prev] | [standalone]
Back to top | Article view | linux.debian.maint.python
csiph-web