#!/usr/bin/make -f
#export DH_VERBOSE=1

PYTHON3:=$(shell py3versions -vr)
export PYBUILD_NAME=photutils

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

override_dh_auto_build:
	cython3 photutils/geometry/*.pyx
	dh_auto_build

ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
test-python%:
	python$* setup.py test --skip-docs  -vv --args -v

override_dh_auto_test: $(PYTHON3:%=test-python%)
endif
