#!/usr/bin/make -f
# -*- mode: makefile; coding: utf-8 -*-
export PYTHONDONTWRITEBYTECODE=yes
export PYBUILD_NAME=nevow

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

override_dh_auto_install:
	dh_auto_install
	rm -rf debian/python-nevow/usr/doc

override_dh_auto_test:
	ln -s doc .pybuild/pythonX.Y_2.7/build
	PYBUILD_SYSTEM=custom \
	PYBUILD_TEST_ARGS="{interpreter} /usr/bin/trial nevow formless" dh_auto_test
	rm .pybuild/pythonX.Y_2.7/build/doc

override_dh_compress:
	dh_compress -X.py -X.tac
