#!/usr/bin/make -f
# -*- makefile -*-

export PYBUILD_NAME=pynn

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

# Ignore test suite errors which are most probably caused by lazyarray
#  see https://bitbucket.org/apdavison/lazyarray/issues/6/test-failure
# At least the error message are exactly the same as for lazyarray and
# even the different behaviour between Python3.7 and Python3.8 can be
# observed
override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	dh_auto_test || true
endif

override_dh_fixperms:
	dh_fixperms
	find debian -name "*.mod" -exec chmod -x \{\} \;
