#1151898 metview-python: FTBFS: E: dh_python3 fs:312: python3-metview includes a common build directory name 'tests' as a module. Likely due to a mis-configured build system installing things it shouldn't.

#1151898#5
Date:
2026-10-24 09:41:13 UTC
From:
To:
Dear maintainer:

During a rebuild of all packages in unstable, this package failed to build.

Below you will find the last part of the build log (probably the most
relevant part, but not necessarily). If required, the full build log
is available here:

https://people.debian.org/~sanvila/build-logs/202610/

About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.

If you cannot reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.

If this is really a bug in one of the build-depends, please use
reassign and add an affects on src:metview-python, so that this is still
visible in the BTS web page for this package.

Thanks.
--------------------------------------------------------------------------------
[...]
D: dh_python3 dh_python3:89: options: DHPythonOptions(O=['--buildsystem=pybuild'], accept_upstream_versions=False, allow_build_directory_module_name=False, allow_unmerged_dist_packages=False, arch=None, clean_dbg_pkg=True, compile_all=False, depends=[], depends_section=[], guess_deps=True, ignore_shebangs=False, no_ext_rename=False, no_package=[], no_shebang_rewrite=False, package=[], private_dir=None, recommends=[], recommends_section=[], regexpr=[], remaining_packages=False, requires=[], shebang=None, skip_private=False, suggests=[], suggests_section=[], verbose=True, vrange=None, write_log=False)
D: dh_python3 dh_python3:90: supported Python versions: 3.14,3.15 (default=3.14)
D: dh_python3 debhelper:229: source=metview-python, binary packages=['python3-metview']
D: dh_python3 dh_python3:117: processing package python3-metview...
D: dh_python3 fs:61: moving files from debian/python3-metview/usr/lib/python3.14/dist-packages to debian/python3-metview/usr/lib/python3/dist-packages/
E: dh_python3 fs:312: python3-metview includes a common build directory name 'tests' as a module. Likely due to a mis-configured build system installing things it shouldn't.
make: *** [debian/rules:9: binary] Error 1
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2
--------------------------------------------------------------------------------

#1151898#10
Date:
2026-10-29 23:05:40 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
metview-python, 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 1151898@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Stuart Prescott <stuart@debian.org> (supplier of updated metview-python 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: Fri, 30 Oct 2026 09:19:54 +1100
Source: metview-python
Architecture: source
Version: 1.16.2-3
Distribution: unstable
Urgency: medium
Maintainer: Debian Science Maintainers <debian-science-maintainers@lists.alioth.debian.org>
Changed-By: Stuart Prescott <stuart@debian.org>
Closes: 1151898
Changes:
 metview-python (1.16.2-3) unstable; urgency=medium
 .
   * Team upload.
   * Add patch to stop setup.py from trying to include the 'tests' directory
     in the module (Closes: #1151898).
   * Update Standards-Version to 4.7.4 (no changes required).
 .
 metview-python (1.16.2-2) UNRELEASED; urgency=medium
 .
   * Tidy d/copyright for licenserecon
   * Move d/watch to version 4
Checksums-Sha1:
 1a5d8490aab09d5c7fe35173b68435557de9aa20 2409 metview-python_1.16.2-3.dsc
 7bb9173268f486a7baca6b92b91a059fbba9900a 3272 metview-python_1.16.2-3.debian.tar.xz
 49bdbcb4dd08344e27f5cd56b3a8bbd0f4761ce8 9299088 metview-python_1.16.2-3.git.tar.xz
 3f4e7d31299b4f6ae36a15a87396b04cf0cc6739 17769 metview-python_1.16.2-3_source.buildinfo
Checksums-Sha256:
 b9dd743264796ce03a8480098f70f2dbd67e9359e113e0bece1d95c4de54a573 2409 metview-python_1.16.2-3.dsc
 ddc59726119fb9dd0ff38370c37d81b5c3314fac9c6f71eef7e066a4fb372999 3272 metview-python_1.16.2-3.debian.tar.xz
 2da231e60677e379f038151402076ea7748894ff6e46bc8c4d0e690bf97c9e2a 9299088 metview-python_1.16.2-3.git.tar.xz
 c192bd18d367dcd9cd03c4040d85714f224a2668a4b5dada0e9237f1225e4a91 17769 metview-python_1.16.2-3_source.buildinfo
Files:
 94cabf1cebabfc5ddc1e165cc13f7aec 2409 python optional metview-python_1.16.2-3.dsc
 3b10b21e34750afebb1d413eacfd50cc 3272 python optional metview-python_1.16.2-3.debian.tar.xz
 4fc6f9632f87f91c961746032958733d 9299088 python None metview-python_1.16.2-3.git.tar.xz
 9f5230921d46c234dfd500e917400446 17769 python optional metview-python_1.16.2-3_source.buildinfo
Git-Tag-Info: tag=f409875862ed96600c9c05900278f7bf12fb306e fp=90e2d2c1ad146a1b7ebb891dbbc17ebb1396f2f7
Git-Tag-Tagger: Stuart Prescott <stuart@debian.org>
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEN02M5NuW6cvUwJcqYG0ITkaDwHkFAmrjy8EACgkQYG0ITkaD
wHmXyhAApOavKwp+/RAUSPkRRovdTti6TnyE8PZ7SFQ2FtK6OvloyK/4KW813zmu
+HNQZsezJ+s9FhMcpGMBIEyxj3gQ/hXVOYM7tA8MQ8ejmBsnbrY/Un/89m41vk1m
uj47XRwKeg9VIuzEY77Jx+oon9cEV8ZQ770Vfw9QcHYxgo9wzGZUXjhObikTAddu
BwBm/ogHLEHRflaVb4dkj//Vgm7ymXQS54cqFAiZquO0nqmtSw4cYXrTT/QjGcmS
qGBhN47Ygz73CBROqq7N98YSQrgtFgw7khQifCmzmVZzlxBV4WZSCW0lsCGGdGhp
w1gWHgMKezQH3CtJi/rMsAQ1QvVQExdtQzmZ+sXpzK7JEHA2NLz64eaEgQhQ6t/L
fmOSiiDvOY+ItUylsaTHiXNgLFaB8ss7nhhE3RIYkKLZu5ywYi+kbjQkjuJR7SlN
RwzQ03uCOep0K25i6UaRj/NoRc5Le8s5Uu0+sO3b2sTquvRDWX9MxNi1N50Hxw3Z
EAsEWr02nEPC/rX0vHPaMp2Cz9jaXgnshmOk/jMa5O6CK8IFX6yokBqV4PFO3lzj
0IRyyeiS5bYNMIAaNVeqLNVcpRUwspNuq2aYugcQ48eznAbipT5DoFnwpFbIRYHZ
LBaoALxTWtduOAXp9t+bHMKfT/BUfgAj163hs7ncpkjLrMlB5aU=
=XVds
-----END PGP SIGNATURE-----