Package: dh-python Version: 4.20191017 Severity: serious Justification: 14.3 Control: block 945338 -1 Control: block 945339 -1
dh_python3 sets up a py3compile entry in the postinst script for a package containing python scripts. dh_installexamples installs example scripts into /usr/share/doc/<package>/examples It is well possible that some of those example scripts may be python, so they are detected by dh_python3 and registered for processing by py3compile. But we are currently being hit with RC bugs saying that this situation is a serious bug, since it is possible that /usr/share/doc may not be installed, might not be present, Debian Policy 12.3. See for example petsc bug#945338, slepc bug#945339. It seems to me reasonable that you would install to example python scripts using dh_installexamples. Yes you could install elsewhere using dh_install, but then what is the point of dh_installexamples? In that case dh_python3 needs to be updated to comply with Policy 12.3, to let the py3compile snippet not break when acting on python files in /usr/share/doc/*/examples -- System Information: Debian Release: bullseye/sid APT prefers unstable APT policy: (500, 'unstable'), (1, 'experimental') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 5.3.0-2-amd64 (SMP w/4 CPU cores) Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8), LANGUAGE=en_AU:en (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages dh-python depends on: ii python3 3.7.5-3 ii python3-distutils 3.8.0-1 dh-python recommends no packages. Versions of packages dh-python suggests: ii dpkg-dev 1.19.7 ii libdpkg-perl 1.19.7 -- no debconf information