Control: tags -1 + patch check the python3 interpreter before using it.
diff -Nru dh-python-6.20250414/autoscripts/prerm-py3clean dh-python-6.20250414.1/autoscripts/prerm-py3clean --- dh-python-6.20250414/autoscripts/prerm-py3clean 2025-04-14 22:39:29.000000000 +0200 +++ dh-python-6.20250414.1/autoscripts/prerm-py3clean 2025-10-26 10:44:41.000000000 +0100 @@ -1,4 +1,4 @@ -if command -v py3clean >/dev/null 2>&1; then +if command -v py3clean >/dev/null 2>&1 && python3 -c 'pass' 2>/dev/null; then py3clean -p #PACKAGE# #ARGS# else dpkg -L #PACKAGE# | sed -En -e '/^(.*)\/(.+)\.py$/s,,rm "\1/__pycache__/\2".*,e' diff -Nru dh-python-6.20250414/debian/changelog dh-python-6.20250414.1/debian/changelog --- dh-python-6.20250414/debian/changelog 2025-04-14 22:39:29.000000000 +0200 +++ dh-python-6.20250414.1/debian/changelog 2025-10-26 10:44:41.000000000 +0100 @@ -1,3 +1,10 @@ +dh-python (6.20250414.1) UNRELEASED; urgency=medium + + * autoscripts/prerm-py3clean: Check for a working /usr/bin/python3, + the same interpreter used for py3clean. Addresses: #1109501. + + -- Matthias Klose <[email protected]> Sun, 26 Oct 2025 10:44:41 +0100 + dh-python (6.20250414) unstable; urgency=medium [ Colin Watson ]

