Debian Codegraph @

debian/rules

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