| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
%: |
| 4 |
dh $@ |
| 5 |
|
| 6 |
override_dh_auto_configure: |
| 7 |
true |
| 8 |
|
| 9 |
override_dh_auto_build: |
| 10 |
true |
| 11 |
|
| 12 |
override_dh_auto_install: |
| 13 |
true |
| 14 |
|
| 15 |
override_dh_install: |
| 16 |
dh_install |
| 17 |
perl -p -i -e 's{#!/usr/bin/env python$$}{#!/usr/bin/python3}' debian/meshroom/usr/bin/* |
| 18 |
# don't install pycache |
| 19 |
find debian/meshroom -name __pycache__ -exec rm -r '{}' + |
| 20 |
# No executables in /usr/lib |
| 21 |
find debian/meshroom/usr/lib -type f | xargs chmod a-x |
| 22 |
|
| 23 |
# This test eats up all my memory and makes my computer crash |
| 24 |
TESTS_EXCLUDE := \ |
| 25 |
tests/test_nodeAttributeChangedCallback.py |
| 26 |
|
| 27 |
override_dh_auto_test: |
| 28 |
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS))) |
| 29 |
$(foreach f,$(filter-out $(TESTS_EXCLUDE),$(wildcard tests/test*.py)), pytest $f &&) true |
| 30 |
endif |