#!/usr/bin/make -f
# -*- makefile -*-

PYS = $(shell pyversions -r)
export  http_proxy=http://127.0.0.1:9/
export  https_proxy=http://127.0.0.1:9/

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

override_dh_clean:
	dh_clean
	rm -rf .pydistutils.cfg

override_dh_auto_test:
	cd source; \
	for PYTHON in $(PYS); do \
        $$PYTHON setup.py test || exit 1; \
    done
