On Sat, Oct 24, 2026 at 02:40:20PM +1100, Ben Finney wrote:
Recently, ‘dh_python3’ detects a “common build directory name” in the
built package, and then exits with error. Example:

=====
  dh_python3 -O--buildsystem=pybuild
E: dh_python3 fs:312: [yourpackage] includes a common build directory name 
'test' as a module. Likely due to a mis-configured build system installing 
things it shouldn't.
=====

This is a good check. But why does that directory get installed?
[...]
That lengthy issue comment also offers some options to work around the
bug. Which of them, or what other workaround, can we expect to work in
Debian packages?

In my experience, using "include" rather than "exclude" is almost always the correct fix. "exclude" goes wrong as soon as anything else is present in the build tree that looks vaguely like a Python package; I commonly see it accidentally including such directories as "build", "debian", and "docs".

I've generally had good luck upstreaming patches to use "include" instead.

--
Colin Watson (he/him)                              [[email protected]]

Reply via email to