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

#1151613#5
Date:
2026-10-22 08:33:18 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:python-varcode, 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 (default=3.14)
D: dh_python3 debhelper:229: source=python-varcode, binary packages=['python3-varcode', 'varcode']
D: dh_python3 dh_python3:117: processing package python3-varcode...
D: dh_python3 fs:61: moving files from debian/python3-varcode/usr/lib/python3.14/dist-packages to debian/python3-varcode/usr/lib/python3/dist-packages/
E: dh_python3 fs:312: python3-varcode 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:26: binary] Error 1
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2
--------------------------------------------------------------------------------