debian/rules
raw| 1 | #!/usr/bin/make -f |
| 2 | |
| 3 | DHFLAGS= |
| 4 | export PYBUILD_SYSTEM=distutils |
| 5 | |
| 6 | %: |
| 7 | dh $@ $(DHFLAGS) --with python3 --buildsystem=pybuild |
| 8 | |
| 9 | override_dh_auto_clean: |
| 10 | rm -Rf Magnus.egg-info/ |
| 11 | |
| 12 | # dh_auto_clean with pybuild/distutils only works if setup.py is |
| 13 | # present |
| 14 | if [ -f setup.py ]; then \ |
| 15 | dh_auto_clean; \ |
| 16 | fi |
| 17 | |
| 18 | get-orig-source: |
| 19 | uscan --noconf --force-download --rename --download-current-version --repack --destdir=.. |