| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
# DH_VERBOSE := 1 |
| 4 |
export LC_ALL=C.UTF-8 |
| 5 |
|
| 6 |
include /usr/share/dpkg/default.mk |
| 7 |
|
| 8 |
export PYBUILD_INSTALL_ARGS=--install-scripts=/usr/bin/ |
| 9 |
export PYBUILD_TEST_ARGS=-k-pytest |
| 10 |
|
| 11 |
include /usr/share/dpkg/default.mk |
| 12 |
|
| 13 |
# for hardening you might like to uncomment this: |
| 14 |
# export DEB_BUILD_MAINT_OPTIONS=hardening=+all |
| 15 |
|
| 16 |
%: |
| 17 |
dh $@ --with python3 --buildsystem=pybuild |
| 18 |
|
| 19 |
override_dh_installexamples: |
| 20 |
dh_installexamples |
| 21 |
find debian -name __pycache__ -type d | xargs rm -rf |
| 22 |
find debian/$(DEB_SOURCE)/usr/lib/python* -name scripts -type d | xargs rm -rf |