#!/usr/bin/make -f

%:
	dh $@ --buildsystem=python_distutils --with=python2

override_dh_installdocs:
	cd sphinx && make text
	dh_installdocs

ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
override_dh_auto_test:
	set -e && \
	for test in $$(find pyptlib/test -type f -name 'test_*.py'); do \
		PYTHONPATH=. python $$test; \
	done
endif
