1
0
Fork 0

Using rules to extend dh_auto_clean for removing egg-info files rather than overwriting clean with a debhelper file.

Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
Daniel Baumann 2025-02-07 10:30:22 +01:00
parent 563c325230
commit bdc16fa702
Signed by: daniel
GPG key ID: FBB4F0E80A80222F
3 changed files with 4 additions and 3 deletions

2
debian/clean vendored
View file

@ -1,2 +0,0 @@
*.egg-info/*
.cache/

4
debian/rules vendored
View file

@ -8,5 +8,9 @@ export PYBUILD_AFTER_TEST=rm {build_dir}/example.py
%:
dh ${@} --buildsystem pybuild --with python3
execute_after_dh_auto_clean:
# help pybuild
rm -rf *.egg-info
override_dh_compress:
dh_compress -X example.py

View file

@ -1 +0,0 @@
extend-diff-ignore="^[^/]+\.egg-info/"