#!/usr/bin/make -f # Uncomment this to turn on verbose mode. export DH_VERBOSE=1 export LC_ALL=C.UTF-8 export PYBUILD_NAME=biom-format export PYBUILD_DESTDIR_python3=debian/python3-$(PYBUILD_NAME) export examplepkg=python-$(PYBUILD_NAME)-examples export PYBUILD_AFTER_INSTALL_python3=dh_numpy3 export PYBUILD_BEFORE_TEST=cp -r {dir}/examples {build_dir} ## When trying better hardening the build fails # export DEB_BUILD_MAINT_OPTIONS = hardening=+all export DEB_BUILD_MAINT_OPTIONS = hardening=+bindnow %: dh $@ --with python3,bash-completion,sphinxdoc --buildsystem=pybuild override_dh_auto_build: # arch USE_CYTHON=true dh_auto_build # indep: PYTHONPATH=. http_proxy='127.0.0.1:9' sphinx-build -N -b html doc build/html PYTHONPATH=. http_proxy='127.0.0.1:9' sphinx-build -N -b man doc build/man override_dh_installdocs-indep: dh_installdocs --indep dh_sphinxdoc --indep override_dh_fixperms: dh_fixperms find debian -name exercise_cli.sh -exec chmod +x \{\} \; override_dh_installexamples: dh_installexamples find debian -name "*.c" -delete find debian -name "*.pyx" -delete # move tests from Python3 package to examples package if [ ! -d biom/tests ] ; then \ mv `find debian/python*$(PYBUILD_NAME) -name tests -type d` biom ; \ else \ find debian/python*$(PYBUILD_NAME) -name tests -type d | xargs rm -rf ; \ fi override_dh_auto_install: dh_auto_install find $(PYBUILD_DESTDIR_python3) -name .coverage -delete