#!/usr/bin/make -f DPKG_EXPORT_BUILDFLAGS = 1 include /usr/share/dpkg/default.mk export PYBUILD_NAME = pbcore export PYBUILD_TEST_ARGS = --ignore=test_pbdataset.py \ --ignore=test_pbdataset_filters.py \ --ignore=test_pbdataset_metadata.py \ --ignore=test_pbdataset_subtypes.py export PYBUILD_AFTER_INSTALL = \ chmod -x {destdir}/{install_dir}/pbcore/data/datasets/*.xml export PYBUILD_AFTER_TEST = rm -rfv {build_dir}/coverage.xml {build_dir}/nosetests.xml DESTDIR = $(CURDIR)/debian/python3-$(PYBUILD_NAME) DOCDIR = $(CURDIR)/debian/python-pbcore-doc export LC_ALL=C.UTF-8 %: dh $@ --buildsystem=pybuild execute_after_dh_auto_build: PYTHONPATH=$(shell pybuild --print build_dir --interpreter python3) $(MAKE) doc execute_before_dh_install: mkdir -p _tmp/usr/share/doc/python3-$(PYBUILD_NAME) cp -a tests _tmp/usr/share/doc/python3-$(PYBUILD_NAME) execute_after_dh_install: mv $(DESTDIR)/usr/bin/.open $(DESTDIR)/usr/bin/pbopen rmdir $(DOCDIR)/usr/share/doc/python3-pbcore/html/_images/ cd debian/python-pbcore-doc/usr/share/doc/python3-pbcore/tests && \ rm -f test_pbdataset.py \ test_pbdataset_filters.py \ test_pbdataset_metadata.py \ test_pbdataset_subtypes.py execute_after_dh_python3: find $(DESTDIR)/usr/lib/python3* -type d -name dist-packages -empty | xargs rm -rf find $(DESTDIR)/usr/lib -type d -name "python3*" -empty | xargs rm -rf override_dh_installdocs: dh_installdocs -X _source override_dh_auto_test: export PYTHONPATH=$(CURDIR) override_dh_installchangelogs: dh_installchangelogs CHANGELOG.org execute_after_dh_auto_clean: $(MAKE) clean find . -name __pycache__ | xargs -r rm -rf