#!/usr/bin/make -f

export PYBUILD_NAME=cryptography

# Disable test suite for the moment, because it requires dependencies which are
# not yet in Debian :(
export PYBUILD_DISABLE=test

export DH_VERBOSE=1

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


override_dh_auto_clean:
	dh_auto_clean
	rm -rf cryptography/hazmat/bindings/__pycache__ \
	       cryptography/hazmat/primitives/__pycache__


override_dh_python3:
	dh_python3
	rm -rf debian/python3-cryptography/usr/lib/python3.?
