1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
|
#!/usr/bin/make -f
include /usr/share/dpkg/pkg-info.mk
#export DH_VERBOSE=1
export PYBUILD_NAME=entrypoints
%:
dh $@ --with python3 --buildsystem=pybuild
override_dh_auto_clean:
# The test suite embeds *.egg-info directories, and the only way to
# get pybuild not to remove them is to temporarily move them aside.
# See https://bugs.debian.org/1051837.
for egg_info in $$(find -name \*.egg-info); do mv "$$egg_info" "$$egg_info.safe"; done
dh_auto_clean
for egg_info_safe in $$(find -name \*.egg-info.safe); do mv "$$egg_info_safe" "$${egg_info_safe%.safe}"; done
|