#!/usr/bin/make -f

export PYBUILD_NAME=python3-ezgb

%:
	dh $@ --buildsystem=pybuild

override_dh_install:
	find $(CURDIR)/debian/tmp -type d -name '__pycache__' -prune -o -type d -name '.pytest_cache' -prune -o -print | \
	  xargs cp -a --target-directory=$(CURDIR)/debian/python3-ezgb/ || true
	rm -rf $(CURDIR)/debian/tmp/usr/lib/python*/dist-packages/*/dist-info/licenses
	dh_install

override_dh_clean:
	dh_clean
	find $(CURDIR)/debian/python3-ezgb -type d -name '__pycache__' -exec rm -rf {} + || true
