From f69bb588d6600ccfafaaedf27ac02de1c7349f95 Mon Sep 17 00:00:00 2001 From: Romuald Brunet Date: Fri, 12 Aug 2022 17:47:17 +0200 Subject: [PATCH] Use a more explicit name for pyremove in manual Replace `pkg.pyremove` by `{pkg-name}.pyremove` in the "pyremove files" section Motivation: I had to read the source of dh_python to understand that "pkg" was not a hardcoded name, but the name of the package Hopefully this will avoid similar confusion for other developers not familiar with packaging --- dh_python2.rst | 2 +- dh_python3.rst | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dh_python2.rst b/dh_python2.rst index 2b29f41..4b96a9b 100644 --- a/dh_python2.rst +++ b/dh_python2.rst @@ -128,7 +128,7 @@ pyremove files ~~~~~~~~~~~~~~ If you want to remove some public modules (i.e. files in .../dist-packages/ directory) installed by build system (from all supported Python versions or -only from a subset of these versions), add them to debian/pkg.pyremove file. +only from a subset of these versions), add them to debian/{pkg-name}.pyremove file. Examples: * ``*.pth`` removes .pth files from .../dist-packages/ diff --git a/dh_python3.rst b/dh_python3.rst index 368efc6..5218441 100644 --- a/dh_python3.rst +++ b/dh_python3.rst @@ -114,7 +114,7 @@ pyremove files ~~~~~~~~~~~~~~ If you want to remove some public modules (i.e. files in .../dist-packages/ directory) installed by build system (from all supported Python versions or -only from a subset of these versions), add them to debian/pkg.pyremove file. +only from a subset of these versions), add them to debian/{pkg-name}.pyremove file. Examples: * ``*.pth`` removes .pth files from .../dist-packages/