#!/usr/bin/make -f export DH_VERBOSE = 1 export DEB_BUILD_MAINT_OPTIONS = hardening=+all export PYBUILD_TEST_PYTEST = 0 %: dh $@ --with python3 --buildsystem=pybuild # BuildStream ships with pre-complied Python GRPC protocols # These are incompatible with Debian's outdated python3-protobuf version, so we # need to recompile with that version execute_before_dh_auto_build: python3 setup.py build_grpc # Ensure pyproject.toml doesn't get installed into /usr/lib/python3/dist-packages execute_after_dh_auto_install: find debian/ -name pyproject.toml -print -delete # The tests don't work in Debian. Not sure they're very useful for us. override_dh_auto_test: -PYBUILD_SYSTEM=custom PYBUILD_TEST_ARGS="{interpreter} setup.py test" dh_auto_test