Debian Codegraph @

debian/rules

raw symbols SCIP
1 #!/usr/bin/make -f
2
3 include /usr/share/dpkg/architecture.mk
4
5 export DEB_BUILD_MAINT_OPTIONS=hardening=+all
6 export PYBUILD_NAME=pyppmd
7
8 PYBUILD_TEST_ARGS =
9 DISABLE_TESTS =
10
11 # Display each test name
12 PYBUILD_TEST_ARGS += --verbose
13
14 # fuzzing tests fails with timeout often
15 DISABLE_TESTS += not test_ppmd7_fuzzer
16 DISABLE_TESTS += and not test_ppmd8_fuzzer
17
18 # disable some tests that requires large memory
19 ifeq (sparc64,$(DEB_HOST_ARCH))
20 DISABLE_TESTS += and not test_ppmd7_encode_decode
21 DISABLE_TESTS += and not test_ppmd8_encode_decode
22 endif
23
24 PYBUILD_TEST_ARGS += -k "$(DISABLE_TESTS)"
25
26 # Drop benchmark test for ports architecture.
27 # Because "cpuinfo" module is not reliable for ports architecture.
28 ifeq (,$(findstring $(DEB_HOST_ARCH),amd64 arm64 armhf i386 ppc64el riscv64 s390x))
29 PYBUILD_TEST_ARGS += -m "not benchmark"
30 endif
31
32 export PYBUILD_TEST_ARGS
33
34 %:
35 dh $@ --buildsystem=pybuild
36
37 execute_after_dh_auto_install:
38 rm -rfv debian/python3-pyppmd/usr/lib/python3.*/dist-packages/.hypothesis/