🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.bugs.dist
Article #1442

Bug#1151378: dh-python: several packages FTBFS with error "XXX includes a common build directory name 'tests' as a module."

#1442
From: Stefano Rivera
Date: Tue, 20 Oct 2026 13:40
55 lines
3935 bytes
Control: clone -1 -2 -3 -4 -5 -6 -7 -8 -9 -10 -11 -12 -13 -14 -15 -16 -17 -18
Control: reassign -1 src:appdata
Control: reassign -2 src:busco
Control: reassign -3 src:dissononce
Control: reassign -4 src:django-distill
Control: reassign -5 src:dogtail2
Control: reassign -6 src:gitsome
Control: reassign -7 src:mkdocs-macros-plugin
Control: reassign -8 src:palettable
Control: reassign -9 src:pkb-client
Control: reassign -10 src:pocsuite3
Control: reassign -11 src:python-jira
Control: reassign -12 src:python-multidict
Control: reassign -13 src:python-pantomime
Control: reassign -14 src:python-serializable
Control: reassign -15 src:python-sparkpost
Control: reassign -16 src:python-threadloop
Control: reassign -17 src:sbws
Control: reassign -18 src:sorted-nearest

Hi Santiago (2026.10.20_10:33:14_+0000)
>The packages in the affects line all fail to build in a similar way:
>
>E: dh_python3 fs:312: python3-sorted-nearest includes a common build directory name 'tests' as a module. Likely due to a mis-configured build system installing things it shouldn't.

This is a new feature in dh-python, detecting likely build 
misconfiguration (as the message states).

building sorted-nearest attempts to install:

sorted-nearest-0.0.41+dfsg/debian/python3-sorted-nearest/usr/lib/python3/dist-packages/tests
sorted-nearest-0.0.41+dfsg/debian/python3-sorted-nearest/usr/lib/python3/dist-packages/tests/test_ties.py
sorted-nearest-0.0.41+dfsg/debian/python3-sorted-nearest/usr/lib/python3/dist-packages/tests/conftest.py

That's clearly wrong, and inappropriate.
I note that the version in unstable doesn't include these files, and it 
isn't immediately obvious to me where the regression is. Probably in 
setuptools.

But the package includes in pyproject:

[tool.setuptools.packages.find]
where = ["."]

That should really have some includes or excludes.

I checked appdata and busco, both have the same issue. Let's assume that 
all of these packages are affected.

Stefano

-- 
Stefano Rivera
   http://tumbleweed.org.za/
   +1 415 683 3272
Technical Details
Message-ID: <NQiel-6LYK-3@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.corradoroberto.it!bofh.it!news.nic.it!robomod
References: <NQfq9-6JV2-7@gated-at.bofh.it> <NQfq9-6JV2-7@gated-at.bofh.it>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.corradoroberto.it!bofh.it!news.nic.it!robomod
From: Stefano Rivera <stefanor@debian.org>
Newsgroups: linux.debian.bugs.dist
Subject: Bug#1151378: dh-python: several packages FTBFS with error "XXX includes a common build directory name 'tests' as a module."
Date: Tue, 20 Oct 2026 15:40:01 +0200
Message-ID: <NQiel-6LYK-3@gated-at.bofh.it>
References: <NQfq9-6JV2-7@gated-at.bofh.it> <NQfq9-6JV2-7@gated-at.bofh.it>
X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org  Tue Oct 20 13:35:07 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -1.7
Reply-To: Stefano Rivera <stefanor@debian.org>, 1151378@bugs.debian.org
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: piotr@debian.org
X-Debian-Pr-Message: followup 1151378
X-Debian-Pr-Package: src:dh-python
X-Debian-Pr-Source: dh-python
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-Debian-User: stefanor
X-Debian-Message: from BTS
X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/1997685
List-ID: <debian-bugs-dist.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-dist/>
Approved: robomod@news.nic.it
Lines: 55
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Tue, 20 Oct 2026 13:33:09 +0000
X-Original-Message-ID: <d6qwxnwyyizoibyupgljt6r6zspod2sdwrafqnubultazjhezm@qthrjn5yvjn3>
X-Original-References: <a1a0d1ed-7713-419f-8909-087555ef1f0e@debian.org> <a1a0d1ed-7713-419f-8909-087555ef1f0e@debian.org>