diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-14 13:42:30 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-14 13:42:30 +0000 |
commit | 75808db17caf8b960b351e3408e74142f4c85aac (patch) | |
tree | 7989e9c09a4240248bf4658a22208a0a52d991c4 /tags/p/python3-script-but-no-python3-dep.tag | |
parent | Initial commit. (diff) | |
download | lintian-75808db17caf8b960b351e3408e74142f4c85aac.tar.xz lintian-75808db17caf8b960b351e3408e74142f4c85aac.zip |
Adding upstream version 2.117.0.upstream/2.117.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tags/p/python3-script-but-no-python3-dep.tag')
-rw-r--r-- | tags/p/python3-script-but-no-python3-dep.tag | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tags/p/python3-script-but-no-python3-dep.tag b/tags/p/python3-script-but-no-python3-dep.tag new file mode 100644 index 0000000..f60d9f3 --- /dev/null +++ b/tags/p/python3-script-but-no-python3-dep.tag @@ -0,0 +1,21 @@ +Tag: python3-script-but-no-python3-dep +Severity: error +Check: scripts +Explanation: Packages with Python3 scripts should depend on the package + <code>python3</code>. Those with scripts that specify a specific version of + Python3 must depend, recommend or suggest on that version of Python3 + (exactly). + . + For example, if a script in the package uses <code>#!/usr/bin/python3</code>, + the package needs a dependency on <code>python3</code>. If a script uses + <code>#!/usr/bin/python3.8</code>, the package needs a dependency on + <code>python3.8</code>. A dependency on <code>python (>= 3.8)</code> is not + correct, since later versions of Python may not provide the + <code>/usr/bin/python3.8</code> binary. + . + If you are using debhelper, adding <code>${python3:Depends}</code> to the + Depends field and ensuring dh_python3 is run during the build should + take care of adding the correct dependency. + . + In some cases a weaker relationship, such as Suggests or Recommends, will + be more appropriate. |