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
|
#!/usr/bin/make -f
include /usr/share/dpkg/pkg-info.mk
DEB_VERSION_MAJOR := $(shell echo $(DEB_VERSION_UPSTREAM) | cut -c 1)
#export DH_VERBOSE=1
export LC_ALL=C.UTF-8
%:
dh $@ --with python3,sphinxdoc --buildsystem=pybuild
execute_after_dh_auto_install:
rm debian/tmp/usr/bin/ipython
execute_before_dh_installman:
cp docs/man/ipython.1 docs/man/ipython3.1
override_dh_auto_test:
@echo "No test to avoid circular dependencies"
override_dh_sphinxdoc:
ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS)))
http_proxy=127.0.0.1:9 https_proxy=127.0.0.1:9 PYTHONPATH=. python3 -m sphinx -b html docs/source debian/python-ipython-doc/usr/share/doc/python-ipython-doc/html
dh_sphinxdoc -O--buildsystem=pybuild
endif
override_dh_installchangelogs:
dh_installchangelogs -k docs/source/whatsnew/version$(DEB_VERSION_MAJOR).rst
|