| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
include /usr/share/dpkg/architecture.mk |
| 4 |
|
| 5 |
export PYBUILD_NAME=resampy |
| 6 |
export PYBUILD_TEST_ARGS=-k "not parallel" ${CURDIR} |
| 7 |
ifneq (,$(filter $(DEB_BUILD_ARCH),s390x)) |
| 8 |
export PYBUILD_DISABLE=test |
| 9 |
endif |
| 10 |
|
| 11 |
%: |
| 12 |
dh $@ --with sphinxdoc --buildsystem=pybuild |
| 13 |
|
| 14 |
execute_after_dh_auto_clean: |
| 15 |
$(RM) -r resampy/data *.egg-info |
| 16 |
|
| 17 |
override_dh_auto_configure: |
| 18 |
env PYTHONPATH=$(CURDIR) python3 debian/mkfilters.py resampy/data |
| 19 |
dh_auto_configure |
| 20 |
|
| 21 |
override_dh_auto_test: |
| 22 |
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS))) |
| 23 |
dh_auto_test |
| 24 |
$(RM) .pybuild/*/build/.coverage .pybuild/*/build/coverage.xml |
| 25 |
endif |
| 26 |
|
| 27 |
override_dh_auto_build: export http_proxy=127.0.0.1:9 |
| 28 |
override_dh_auto_build: export https_proxy=127.0.0.1:9 |
| 29 |
override_dh_auto_build: |
| 30 |
dh_auto_build |
| 31 |
ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS))) |
| 32 |
PYTHONPATH=. python3 -m sphinx -N -bhtml docs/ $(CURDIR)/.pybuild/docs/html/ |
| 33 |
endif |