#!/usr/bin/make -f

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

export PYBUILD_NAME=arrayfire

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

override_dh_auto_test:
	PYBUILD_SYSTEM=custom \
	PYBUILD_BEFORE_TEST="cp -r {dir}/tests {build_dir}" \
	PYBUILD_TEST_ARGS="cd {build_dir}; {interpreter} -m tests" \
	PYBUILD_AFTER_TEST="rm -rf {build_dir}/tests" \
	dh_auto_test
