Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2
3 # Uncomment this to turn on verbose mode.
4 #export DH_VERBOSE=1
5
6 include /usr/share/dpkg/pkg-info.mk
7
8 export PYBUILD_NAME=ptrace
9 PYTHON3_VERSIONS = $(shell py3versions -r)
10 py3sdo = set -e; $(foreach py, $(PYTHON3_VERSIONS), $(py) $(1);)
11
12 override_dh_auto_clean:
13 $(call py3sdo, setup_cptrace.py clean)
14 dh_auto_clean
15
16 override_dh_auto_configure:
17 dh_auto_configure
18 $(call py3sdo, setup_cptrace.py config)
19
20 override_dh_auto_build:
21 dh_auto_build
22 $(call py3sdo, setup_cptrace.py build)
23
24 override_dh_auto_test:
25 ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
26 $(call py3sdo, -m unittest discover -vv tests)
27 endif
28
29 override_dh_auto_install:
30 dh_auto_install
31 $(call py3sdo, setup_cptrace.py install --root=$(CURDIR)/debian/python3-ptrace --install-layout=deb)
32 # do not install examples as real executables
33 rm -rf $(CURDIR)/debian/python3-ptrace/usr/bin
34
35 %:
36 dh $@ --with=python3 --buildsystem=pybuild