Skip to content
Snippets Groups Projects
rules 932 B
Newer Older
#!/usr/bin/make -f
Barry Warsaw's avatar
Barry Warsaw committed
export PYBUILD_NAME=pip
Barry Warsaw's avatar
Barry Warsaw committed
#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:

Barry Warsaw's avatar
Barry Warsaw committed
override_dh_python3:
Barry Warsaw's avatar
Barry Warsaw committed
	rm -f debian/python3-pip/usr/bin/pip3.?
Barry Warsaw's avatar
Barry Warsaw committed
	rm -rf debian/python3-pip/usr/lib/python3.?
Barry Warsaw's avatar
Barry Warsaw committed

override_dh_installchangelogs:
	dh_installchangelogs NEWS.rst
ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS)))
	PYTHONPATH=src:docs \
	  sphinx-build -c docs/html \
	               -d docs/build/doctrees/man \
	               -b man \
	               docs/man \
	               docs/build/man
	PYTHONPATH=src:docs \
	  sphinx-build -c docs/html \
	               -d docs/build/doctrees/html \
	               -b html \
	               docs/html \
	               docs/build/html