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

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

PYVERS = $(shell pyversions -r -v)
PYPLATFORM = $(shell python -c 'import distutils.util as d; print d.get_platform()')


%:
	dh $@ --with python2

override_dh_auto_test:
ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
	set -e ; \
	cd tests/keyczar_tests/; \
	for py in $(PYVERS); do  \
		PYTHONPATH=$(CURDIR)/build/lib.$(PYPLATFORM)-$$py python$$py alltests.py; \
	done
endif


override_dh_auto_clean:
	dh_auto_clean
	
	rm -rf python_keyczar.egg-info
