| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
export PYBUILD_NAME=aionotify |
| 4 |
|
| 5 |
%: |
| 6 |
dh $@ --with python3 --buildsystem=pybuild |
| 7 |
|
| 8 |
override_dh_auto_clean: |
| 9 |
dh_auto_clean |
| 10 |
rm -rf .eggs |
| 11 |
|
| 12 |
override_dh_auto_test: |
| 13 |
ifeq ($(filter nocheck,$(DEB_BUILD_PROFILES)),) |
| 14 |
# TODO requires missing python3-asynctest package |
| 15 |
#dh_auto_test |
| 16 |
endif |
| 17 |
|
| 18 |
override_dh_installexamples: |
| 19 |
dh_installexamples |
| 20 |
find debian/python3-aionotify/usr/share/doc/python3-aionotify/examples/ \ |
| 21 |
-name '*.py' \ |
| 22 |
-exec sed -i 's|#!/usr/bin/env python|#!/usr/bin/python3|' {} \; |