Avoid hard dependency on supported-but-non-default Python interpreters
-
d/control: Add Suggests on python3-all-dev
Each of the f2py3.x scripts needs python3.x-dev, and the python3-all-dev metapackage is an easy way to install those packages for all currently supported Python versions.
-
Avoid hard dependency on supported-but-non-default Python interpreters
Each of the f2py3.x scripts is intended to be run by a corresponding python3.x interpreter, but if we install them in the simplest possible way, dh-python will generate a hard dependency on every supported interpreter during each transitional period in which more than one version is supported.
Instead, install the version-specific Python scripts into /usr/libexec, and use wrapper scripts in /usr/bin to display an error message if the intended interpreter is not currently installed.
Closes: #945824
Please see https://bugs.debian.org/945824 for discussion (I'll follow up there when I have a merge request URL).
This is a conservative version of this MR which makes no assumptions about the content of the f2py3.x scripts, other than that they are Python scripts. See !6 (closed) for a simplified version that makes more assumptions, which might be preferred if you're confident that the assumptions are true.