#!/usr/bin/make -f export DEB_BUILD_MAINT_OPTIONS=hardening=+all export PYBUILD_NAME=yaml build3vers := $(shell py3versions -sv) %: dh $@ --buildsystem pybuild override_dh_auto_test: ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS))) set -e && for i in $(build3vers); do \ echo "-- verifying extension build for $$i --" \ python$$i -c "import sys ; sys.path.insert(0, '.pybuild/cpython3_"$$i"_yaml/build'); import _yaml" \ echo "-- running tests for "$$i" plain --" ; \ python$$i -c "import sys ; sys.path.insert(0, '.pybuild/cpython3_"$$i"_yaml/build'); \ sys.path.insert(0, 'tests/lib'); import test_all; test_all.main([])";\ done endif override_dh_installchangelogs: dh_installchangelogs CHANGES