#!/usr/bin/make -f # DH_VERBOSE := 1 export LC_ALL=C.UTF-8 export DEB_BUILD_MAINT_OPTIONS=hardening=+all export PYBUILD_AFTER_INSTALL=rm -fr {destdir}/usr/lib/python3*/dist-packages/pyrle-*/top_level.txt # Some of the r-* test dependencies are only available on 64 bit, little endian architectures include /usr/share/dpkg/architecture.mk ifeq (,$(filter $(DEB_HOST_ARCH),armhf i386 hppa hurd-i386 m68k powerpc s390x sh4 x32)) export PYBUILD_TEST_ARGS=-n auto else # Skip tests marked "r" by upstream on 32 bit archs, and two tests affected by upstream issue #7 export PYBUILD_TEST_ARGS=-n auto -m "not r" -k "not test_commutative_rles[__add__] and not test_commutative_rles[__mul__]" endif %: dh $@ --with python3 --buildsystem=pybuild