Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.maint.python > #17322
| Path | csiph.com!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod |
|---|---|
| From | Stefano Rivera <stefanor@debian.org> |
| Newsgroups | linux.debian.maint.python |
| Subject | Re: Need help with Lintian warning for pyrle - python module in wrong location (Was: work on pyrle) |
| Date | Sun, 04 Jan 2026 14:00:02 +0100 |
| Message-ID | <M9vSa-7ZrD-13@gated-at.bofh.it> (permalink) |
| References | <M9vSa-7ZrD-15@gated-at.bofh.it> <M9vSa-7ZrD-17@gated-at.bofh.it> <M9vSa-7ZrD-19@gated-at.bofh.it> <M9vSa-7ZrD-21@gated-at.bofh.it> <M9vSa-7ZrD-23@gated-at.bofh.it> |
| X-Original-To | Aryan Karamtoth <spaciouscoder78@disroot.org> |
| X-Mailbox-Line | From debian-python-request@lists.debian.org Sun Jan 4 12:51:57 2026 |
| Old-Return-Path | <stefano@rivera.za.net> |
| X-Amavis-Spam-Status | No, score=-105.489 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.001, LDO_WHITELIST=-5, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SARE_MSGID_LONG45=0.893, SARE_MSGID_LONG50=0.726, USER_IN_DKIM_WELCOMELIST=-0.01, USER_IN_DKIM_WHITELIST=-100] autolearn=no autolearn_force=no |
| X-Policyd-Weight | using cached result; rate: -4.6 |
| Mail-Followup-To | Aryan Karamtoth <spaciouscoder78@disroot.org>, Jeroen Ploemen <jcfp@debian.org>, Pieter Lenaerts <plenae@disroot.org>, debian-python@lists.debian.org |
| X-Gpg-Public-Key | http://www.rivera.za.net/stefano.gpg |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=utf-8; format=flowed |
| Content-Disposition | inline |
| User-Agent | NeoMutt/20250510 |
| X-Mailing-List | <debian-python@lists.debian.org> archive/latest/23567 |
| List-ID | <debian-python.lists.debian.org> |
| List-URL | <https://lists.debian.org/debian-python/> |
| List-Archive | https://lists.debian.org/msgid-search/b2m3dooa5r7i5a6jozfduymzzn63vxlk567yxthejiexclarhz@tsy2ubal2xyh |
| Approved | robomod@news.nic.it |
| Lines | 62 |
| Organization | linux.* mail to news gateway |
| Sender | robomod@news.nic.it |
| X-Original-Cc | Jeroen Ploemen <jcfp@debian.org>, Pieter Lenaerts <plenae@disroot.org>, debian-python@lists.debian.org |
| X-Original-Date | Sun, 4 Jan 2026 12:51:08 +0000 |
| X-Original-Message-ID | <b2m3dooa5r7i5a6jozfduymzzn63vxlk567yxthejiexclarhz@tsy2ubal2xyh> |
| X-Original-References | <df1db754-c9ae-48b6-af82-f3f019ad4b54@disroot.org> <78286f69-2d0d-42f3-96e9-cb7de458aeef@disroot.org> <41914f86-68fb-4faa-8990-0066f36cd0ff@disroot.org> <20260103122625.5f7ba861@debian.org> <5c827d19-4683-4d13-ad8b-aed89268084f@disroot.org> |
| Xref | csiph.com linux.debian.maint.python:17322 |
Show key headers only | View raw
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
Back to linux.debian.maint.python | Previous | Next — Next in thread | Find similar
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
csiph-web