dh_python3 has a *.pyinstall mechanism for installing files as part of
a python module.
dh_missing appears to be ignoring the *pyinstall files and reports the
python files as "missing", which from debhelper 13 causes the build to
fail.
You can see an example in the getfem++ build, e.g.
https://buildd.debian.org/status/fetch.php?pkg=getfem%2B%2B&arch=amd64&ver=5.3%2Bdfsg1-3%2Bb11&stamp=1637484931&raw=0
getfem++ has debian/python3-getfem++.pyinstall containing
debian/tmp/usr/lib/python*/*-packages/getfem/*.py getfem
interface/src/python/*.so getfem
so dh_python3 is handling the python files installed by the upstream
build system to debian/tmp.
But dh_missing reports the false positive:
dh_missing: warning: usr/lib/python3.9/site-packages/getfem/__init__.py exists in debian/tmp but is not installed to anywhere
dh_missing: warning: usr/lib/python3.9/site-packages/getfem/getfem.py exists in debian/tmp but is not installed to anywhere
The following debhelper tools have reported what they installed (with files per package)
* dh_install: libgetfem++-dev (5), libgetfem5++ (2), libgmm++-dev (2), python3-getfem++ (0)
* dh_installdocs: libgetfem++-dev (2), libgetfem5++ (0), libgmm++-dev (0), python3-getfem++ (0)
If the missing files are installed by another tool, please file a bug against it.
When filing the report, if the tool is not part of debhelper itself, please reference the
"Logging helpers and dh_missing" section from the "PROGRAMMING" guide for debhelper (10.6.3+).
(in the debhelper package: /usr/share/doc/debhelper/PROGRAMMING.gz)
Be sure to test with dpkg-buildpackage -A/-B as the results may vary when only a subset is built
If the omission is intentional or no other helper can take care of this consider adding the
paths to debian/not-installed.