#! /usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk

#export DH_VERBOSE=1
export PYBUILD_NAME=pybigwig
export PYBUILD_TEST_ARGS = \
  -k 'not TestRemote and not testNumpyValues' \
  -v pyBigWigTest/test.py


%:
	dh $@ --buildsystem=pybuild

override_dh_auto_install:
	dh_auto_install
	dh_numpy3

# Skip tests on some archs - some tests fail but otherwise package seems ok
ifneq (,$(filter $(DEB_HOST_ARCH), i386 s390x))
override_dh_auto_test:
endif
