#!/usr/bin/make -f
# -*- makefile -*-
#
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

export PYBUILD_TEST_CUSTOM=1
export PYBUILD_TEST_ARGS=cd test && PYTHONPATH={build_dir} {interpreter} tbdsf_process_image.py

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

override_dh_install:
	dh_numpy3
	dh_install

# See: https://github.com/lofar-astron/PyBDSF/issues/270
override_dh_auto_test:
ifneq ($(DEB_HOST_ARCH),s390x)
ifneq ($(DEB_HOST_ARCH_VARIANT),amd64v3)
	dh_auto_test
endif
endif
