#1151403 dh-python: several packages FTBFS with error "XXX includes a common build directory name 'tests' as a module." #1151403
- Package:
- src:python-multidict
- Source:
- src:python-multidict
- Submitter:
- Santiago Vila
- Date:
- 2026-10-21 12:37:03 UTC
- Severity:
- normal
- Tags:
Dear maintainer: 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. (That's how src:sorted-nearest fails, as an example). If this is not a bug in dh-python, please clone and reassign to each of the affected packages, possibly with a brief explanation of what maintainers are supposed to do. Thanks.
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) 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
Hello, Bug #1151403 in python-multidict reported by you has been fixed in the Git repository and is awaiting an upload. You can see the commit message below and you can check the diff of the fix at: https://salsa.debian.org/python-team/packages/python-multidict/-/commit/a23957771e3ce7a70e67711a4a1acbd200a6937a ------------------------------------------------------------------------ Don't install "tests" module Closes: #1151403 ------------------------------------------------------------------------ (this message was generated automatically) -- Greetings https://bugs.debian.org/1151403
We believe that the bug you reported is fixed in the latest version of python-multidict, which is due to be installed in the Debian FTP archive. A summary of the changes between this version and the previous one is attached. Thank you for reporting the bug, which will now be closed. If you have further comments please address them to 1151403@bugs.debian.org, and the maintainer will reopen the bug report if appropriate. Debian distribution maintenance software pp. Colin Watson <cjwatson@debian.org> (supplier of updated python-multidict package) (This message was generated automatically at their request; if you believe that there is a problem with it please contact the archive administrators by mailing ftpmaster@ftp-master.debian.org) Format: 1.8 Date: Wed, 21 Oct 2026 13:07:11 +0100 Source: python-multidict Architecture: source Version: 6.4.3-3 Distribution: unstable Urgency: medium Maintainer: Debian Python Team <team+python@tracker.debian.org> Changed-By: Colin Watson <cjwatson@debian.org> Closes: 1151403 Changes: python-multidict (6.4.3-3) unstable; urgency=medium . * Team upload. * Don't install "tests" module (closes: #1151403). Checksums-Sha1: dc12e02dd9fff4812e3a057516cc4b9fff4cde95 2498 python-multidict_6.4.3-3.dsc c9eb9947afb55b1ec386fda68e8988d40d32ecff 3920 python-multidict_6.4.3-3.debian.tar.xz 789c3919378f4e1f0ca195aea7a221145ff84a58 190748 python-multidict_6.4.3-3.git.tar.xz 843379d998a501ddbe302f7db033fff8898b6db1 17760 python-multidict_6.4.3-3_source.buildinfo Checksums-Sha256: cf428023f7fbffc97bced9d1934bba2f0089ba6a560d037cc714dd6f5c26e503 2498 python-multidict_6.4.3-3.dsc acfdb4fe1c3b23bdddf851e9eb0f2a2134ef081e569f306dbbb3b8c9e13fa895 3920 python-multidict_6.4.3-3.debian.tar.xz 802e50851c611dcb3d9efe240753ada84adaebcb9b9743c4aeebdb814920fb97 190748 python-multidict_6.4.3-3.git.tar.xz 944f242b7631cb8dbbcbee89c91e9af38e99d23ee859e2c85c03e5022efb0e67 17760 python-multidict_6.4.3-3_source.buildinfo Files: b93af2d3ea1856ddf0ef40f26b8aa876 2498 python optional python-multidict_6.4.3-3.dsc 35492dced14d3d5252190542a4a6ef6b 3920 python optional python-multidict_6.4.3-3.debian.tar.xz 39fc60f0d34a9dc84b6e965d0fc3c615 190748 python None python-multidict_6.4.3-3.git.tar.xz c182a137246e05868f022928095ff80a 17760 python optional python-multidict_6.4.3-3_source.buildinfo Git-Tag-Info: tag=e5c479409606b976760ca614d8c376602542b4d1 fp=ac0a4ff12611b6fccf01c111393587d97d86500b Git-Tag-Tagger: Colin Watson <cjwatson@debian.org> -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEN02M5NuW6cvUwJcqYG0ITkaDwHkFAmrYrBcACgkQYG0ITkaD wHkBUQ/+I5fw7yMPBA8axoS8XqEB1SCFcPRasKvuB51yKlS5APSnM1LaTfQJNGjO tR9Vz0em9k6n6HbGejwp6XPCyZvWW0XJbww1GsUtbGoxKRAnlSiWiEDr9XnJQ9QX S0yDUL+rnBqR/SKK3MD/n4mCAQHAsiMqw4Zd2qr3g3qy0U+JxENSXK4qZsCkH2gT y8DpACx4D/5k40S5Bw03zwyYHapqTQHBRlebaoLos4mVZAidjYAsq0WxQSqU1S5q A3jPvPpjriBE84VlppHbhGPOtITsVYG9UHiubgDPnRets1A0v2O1jE31Ze0T2bwV fm+ajNpAlZ9U3ia9pxAjvra2SqXl629mQenFb4VLvt7CdWcgCbamJUcD9aMUJ8t/ mC9UOhFqnj/NLGhCqRNi1v2EKQilr+gGtPcgBR9Ov+Hg/nUn20OujFX8DafRfaHy O0U94k4kzkxGkVOYMNz/2PwSy1S4QesIR+zmtBQIoXCQYCFVaqxEHVmHN7ZwC+6j Z77ZWw/Xmj/H9RcVWY5o3pgAunDW44kkj4u+IFwcBg7X2/HcpuHg6UL0BbGgPL4d MEvm2tiAJpiGN38Qn7Ycx924HPx/KE+Kf+qgl7OV/BXnF1uNNZiYVq1arQgLiRRE T8AxDwyO0krjU1iaUgtUB3WzhiBe5u1Js1ojFUL0N7eWPI9rHyc= =BOrv -----END PGP SIGNATURE-----