Debian Codegraph @

debian/rules

raw symbols SCIP
1 #!/usr/bin/make -f
2
3 # DH_VERBOSE := 1
4 export LC_ALL=C.UTF-8
5 export PYBUILD_NAME = CTDopts
6 export PYBUILD_TEST_ARGS=PYTHONPATH={build_dir} python{version} debian/example.py
7
8 #include /usr/share/dpkg/default.mk
9 # this provides:
10 # DEB_SOURCE: the source package name
11 # DEB_VERSION: the full version of the package (epoch + upstream vers. + revision)
12 # DEB_VERSION_EPOCH_UPSTREAM: the package's version without the Debian revision
13 # DEB_VERSION_UPSTREAM_REVISION: the package's version without the Debian epoch
14 # DEB_VERSION_UPSTREAM: the package's upstream version
15 # DEB_DISTRIBUTION: the distribution(s) listed in the current entry of debian/changelog
16
17 # for hardening you might like to uncomment this:
18 # export DEB_BUILD_MAINT_OPTIONS=hardening=+all
19
20 %:
21 dh $@ --buildsystem=pybuild
22
23 execute_after_dh_auto_build:
24 # an override, not a PYBUILD directive, as we only need to do this once
25 # not for every Python version
26 sed 's#^print$$#print()#' example.py > debian/example.py
27
28 override_dh_auto_test:
29 ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
30 export PYBUILD_SYSTEM=custom; dh_auto_test
31 endif