#!/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