From f63544dbccf79cd78b8127802b09f9a4fb01f5b7 Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Sun, 24 Nov 2013 12:43:48 -0500 Subject: [PATCH] we should not build docs in -a and dh_sphinxdoc should not give us problem either --- debian/rules | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/debian/rules b/debian/rules index 7ca0a182..e5c7d60c 100755 --- a/debian/rules +++ b/debian/rules @@ -36,8 +36,12 @@ override_dh_auto_configure: override_dh_auto_install: ${PYVERS:%=python-install%} ${PY3VERS:%=python-install%} : # Build Documentation ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS))) +ifneq (,$(findstring -a,$(DH_INTERNAL_OPTIONS))) + : # not building documentation in -a +else export PYTHONPATH=$(PKG_TMP)/usr/lib/python$(PYVER)/dist-packages; \ cd doc; test -d build/html || $(MAKE) html +endif endif touch install-stamp @@ -66,6 +70,15 @@ override_dh_python3: _dh_python3 override_dh_compress: dh_compress -X.py -X.html -X.pdf -X.css -X.jpg -X.txt -X.js -X.json -X.rtc +override_dh_sphinxdoc: +ifeq (,$(findstring nodoc,$(DEB_BUILD_OPTIONS))) +ifneq (,$(findstring -a,$(DH_INTERNAL_OPTIONS))) + : # no documentation in -a -- surprised that sphinxdoc doesn't know that +else + dh_sphinxdoc -ppython-skimage-doc +endif +endif + override_dh_installdocs: dh_installdocs -A CONTRIBUTORS.txt README.md CONTRIBUTING.txt TASKS.txt