#!/usr/bin/make -f

export PYBUILD_NAME=pydispatch

%:
	dh $@ --with python2,python3 --buildsystem=pybuild

override_dh_installdocs:
	cd docs/pydoc && PYTHONDONTWRITEBYTECODE=1 PYTHONPATH=../.. ./builddocs.py
	dh_installdocs

override_dh_installexamples:
	chmod 0644 examples/*py
	dh_installexamples
