#!/usr/bin/make -f #export DH_VERBOSE=1 export PYBUILD_DISABLE=test %: dh $@ --buildsystem=pybuild # setuptools_scm tries to get the file list from "git ls", which # doesn't work on the autobuilders. That's why we manually create a # MANIFEST.in by just listing everything and prepending this a (still # possible) upstream provided one. execute_after_dh_auto_configure: if [ -f MANIFEST.in ]; then mv MANIFEST.in MANIFEST.orig; fi find . \( -path './.git' -o -path './debian' \) -prune -o -not -type d -printf "include %P\n" > MANIFEST.in if [ -f MANIFEST.orig ]; then cat MANIFEST.orig >> MANIFEST.in; fi execute_after_dh_auto_clean: rm -f MANIFEST.in if [ -f MANIFEST.orig ]; then mv MANIFEST.orig MANIFEST.in; fi