#!/usr/bin/make -f export PYBUILD_NAME=freesas export CFLAGS=-I/usr/lib/python3/dist-packages/numpy/core/include %: dh $@ --with python3,numpy3 --buildsystem=pybuild execute_after_dh_auto_install: for i in debian/python3-freesas/usr/bin/* ; do PYTHONPATH=$$(echo debian/python3-freesas/usr/lib/python*/dist-packages) HOME=$(CURDIR)/_build PATH=_build/bin:$$PATH help2man --output=$$(basename $$i).1 --version-string=$$(dpkg-parsechangelog -S Version | sed s/-[^-]*$$//) --help-option --help --no-discard-stderr $$i ; done override_dh_auto_test: set -ex ; for v in $$(py3versions -sv) ; do (P=.pybuild/cpython3_$${v}_freesas/build ; cp -r src/freesas/test $$P/freesas/ ; cd $$P ; python$$v -m unittest discover -v) ; done