debian/rules
raw| 1 | #!/usr/bin/make -f |
| 2 | # -*- mode: makefile; coding: utf-8 -*- |
| 3 | |
| 4 | export PYBUILD_NAME = binaryornot |
| 5 | |
| 6 | %: |
| 7 | dh $@ --buildsystem=pybuild |
| 8 | |
| 9 | override_dh_auto_clean: |
| 10 | rm -rf .hypothesis tests/files/troublesome.pyc |
| 11 | tar caf keep_pyc_files.tar.gz tests/files/*.pyc |
| 12 | dh_auto_clean |
| 13 | tar xaf keep_pyc_files.tar.gz |
| 14 | rm keep_pyc_files.tar.gz |
| 15 | |
| 16 | override_dh_auto_test: |
| 17 | cp `ls /usr/lib/python*/__pycache__/*.pyc | head -n1` tests/files/troublesome.pyc |
| 18 | dh_auto_test |