Debian Codegraph @

debian/rules

raw symbols SCIP
1 #!/usr/bin/make -f
2
3 export CARGO_HOME=$(shell pwd)/debian/cargo_home
4 DPKG_EXPORT_BUILDFLAGS = 1
5 include /usr/share/dpkg/buildflags.mk
6
7 ifneq (,$(findstring norust,$(DEB_BUILD_PROFILES)))
8 export PURE = 1
9 endif
10
11 %:
12 dh $@ --buildsystem=pybuild
13
14 override_dh_auto_test:
15 ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
16 set -e; for py in $(shell py3versions -s); do \
17 ver=$${py#python}; \
18 builddir=$(CURDIR)/.pybuild/cpython3_$$ver/build; \
19 echo "Running tests with $$py"; \
20 PYTHONHASHSEED=random PYTHONPATH=$$builddir:$(CURDIR) \
21 $$py -m unittest tests.test_suite; \
22 done
23 endif
24
25 override_dh_auto_clean:
26 if test -f Cargo.lock.saved; then mv Cargo.lock.saved Cargo.lock; fi
27 dh_auto_clean
28 rm -rf build*
29 rm -f dulwich/*.so dulwich/*.o
30
31 override_dh_auto_build:
32 mv Cargo.lock Cargo.lock.saved
33 dh_auto_build
34
35 override_dh_installdocs:
36 dh_installdocs -ppython3-dulwich docs/tutorial -X.gitignore -XMakefile
37
38 override_dh_strip:
39 dh_strip -p python3-dulwich
40
41 override_dh_installchangelogs:
42 dh_installchangelogs NEWS