File: rules

package info (click to toggle)
python-pip 23.0.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 8,552 kB
  • sloc: python: 131,263; sh: 75; makefile: 17
file content (29 lines) | stat: -rwxr-xr-x 684 bytes parent folder | download
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
#!/usr/bin/make -f

export PYBUILD_NAME=pip
#export PYBUILD_VERBOSE=1
#export DH_VERBOSE=1

%:
	dh $@ --with python3 --buildsystem=pybuild

# Upstream does not bundle enough of the source tree in the tarball to run the
# test suite.  https://github.com/pypa/pip/issues/3370
override_dh_auto_test:

override_dh_python3:
	dh_python3 -v
	rm -f debian/python3-pip/usr/bin/pip3.?
	rm -rf debian/python3-pip/usr/lib/python3.?

override_dh_installchangelogs:
	dh_installchangelogs NEWS.rst

execute_before_dh_installman:
ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS)))
	mkdir -p debian/tmp
	rst2man debian/pip-manpage.rst > debian/tmp/pip3.man
endif

execute_after_dh_clean:
	rm -rf debian/tmp