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