Adding a prerequisite to the clean target doesn't require adding
a dh_override_target
# DEB_BUILD_OPTIONS := nocheck
+clean: clean-tests
%:
LC_ALL=C.UTF-8 dh $@ --with python2,python3 --buildsystem=pybuild
override_dh_install: clean-tests
dh_install -Xtest.gtf.gz
-override_dh_auto_clean: clean-tests
- dh_auto_clean
-
override_dh_auto_test:
cd tests && make -C pysam_data
# dh_auto_test # unfortunately this does not work out of the box