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 30 31 32
|
export PYBUILD_NAME=pex
export DH_VERBOSE=1
export pkgversion=$(shell dpkg-parsechangelog --show-field version)
%:
dh $@ --with python3,sphinxdoc --buildsystem=pybuild
override_dh_auto_install:
dh_auto_install
mkdir -p debian/pex/usr/bin
cp debian/python3-pex/usr/bin/pex debian/pex/usr/bin
rm -rf debian/python3-pex/usr/bin
override_dh_installdocs:
PYTHONPATH=. python3 -m sphinx -N -bhtml docs build
dh_installdocs
override_dh_installman:
PYTHONPATH=$(CURDIR) help2man -n pex -s 1 -o debian/pex.1 \
--version-string=$(pkgversion) \
--no-discard-stderr --no-info \
debian/pex/usr/bin/pex
dh_installman
override_dh_auto_clean:
rm -f debian/pex.1
dh_auto_clean
|