Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2
3 export PYBUILD_NAME=pip
4 #export PYBUILD_VERBOSE=1
5 #export DH_VERBOSE=1
6
7 %:
8 dh $@ --with python3 --buildsystem=pybuild
9
10 # Upstream does not bundle enough of the source tree in the tarball to run the
11 # test suite. https://github.com/pypa/pip/issues/3370
12 override_dh_auto_test:
13
14 override_dh_python3:
15 dh_python3 -v
16 rm -f debian/python3-pip/usr/bin/pip3.?
17 rm -rf debian/python3-pip/usr/lib/python3.?
18
19 override_dh_installchangelogs:
20 dh_installchangelogs NEWS.rst
21
22 execute_after_dh_auto_build:
23 ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS)))
24 PYTHONPATH=src:docs \
25 sphinx-build -c docs/html \
26 -d docs/build/doctrees/man \
27 -b man \
28 docs/man \
29 docs/build/man
30 PYTHONPATH=src:docs \
31 sphinx-build -c docs/html \
32 -d docs/build/doctrees/html \
33 -b html \
34 docs/html \
35 docs/build/html
36 endif