mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-04 18:15:06 +08:00
we should not build docs in -a and dh_sphinxdoc should not give us problem either
This commit is contained in:
Vendored
+13
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user