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