[gpyfft] 06/13: build and install the documentation.

Frédéric-Emmanuel Picca picca at moszumanska.debian.org
Thu Sep 28 12:47:08 UTC 2017


This is an automated email from the git hooks/post-receive script.

picca pushed a commit to branch master
in repository gpyfft.

commit 2afb99e0db00dded1d0c8f5153a706bc5ff01ac3
Author: Picca Frédéric-Emmanuel <picca at synchrotron-soleil.fr>
Date:   Thu Sep 28 12:10:57 2017 +0200

    build and install the documentation.
---
 debian/control                |  4 +++-
 debian/python-gpyfft-doc.docs |  2 --
 debian/rules                  | 16 +++++++++-------
 3 files changed, 12 insertions(+), 10 deletions(-)

diff --git a/debian/control b/debian/control
index a0943cf..a416262 100644
--- a/debian/control
+++ b/debian/control
@@ -12,10 +12,12 @@ Build-Depends: cython,
                python-nose-parameterized <!nocheck>,
                python-pyopencl <!nocheck>,
                python-setuptools,
+               python-sphinx <!nodoc>,
                python3-all-dev,
                python3-nose-parameterized <!nocheck>,
                python3-pyopencl <!nocheck>,
-               python3-setuptools
+               python3-setuptools,
+               python3-sphinx <!nodoc>
 Standards-Version: 4.1.0
 Homepage: https://github.com/geggo/gpyfft
 X-Python-Version: >= 2.6
diff --git a/debian/python-gpyfft-doc.docs b/debian/python-gpyfft-doc.docs
deleted file mode 100644
index efea0a6..0000000
--- a/debian/python-gpyfft-doc.docs
+++ /dev/null
@@ -1,2 +0,0 @@
-README.Debian
-README.source
diff --git a/debian/rules b/debian/rules
index 463fcd4..d0cd550 100755
--- a/debian/rules
+++ b/debian/rules
@@ -10,16 +10,18 @@ export PYBUILD_NAME=gpyfft
 export PYBUILD_DISABLE=test
 
 %:
-	dh $@ --with python2,python3 --buildsystem=pybuild
+	dh $@ --with python2,python3,sphinxdoc --buildsystem=pybuild
 
 override_dh_clean:
 	dh_clean
 	rm -f $(patsubst %.pyx,%.c,${ALL_PYX})
 	rm -f gpyfft/*.so
+	rm -rf docs/build
 
-# If you need to rebuild the Sphinx documentation
-# Add spinxdoc to the dh --with line
-#override_dh_auto_build:
-#	dh_auto_build
-#	PYTHONPATH=. http_proxy='127.0.0.1:9' sphinx-build -N -bhtml        docs/ build/html # HTML generator
-#	PYTHONPATH=. http_proxy='127.0.0.1:9' sphinx-build -N -bman        docs/ build/man # Manpage generator
+override_dh_sphinxdoc:
+ifeq (,$(findstring nodocs, $(DEB_BUILD_OPTIONS)))
+	PYBUILD_SYSTEM=custom \
+	PYBUILD_BUILD_ARGS="cd docs && PYTHONPATH={build_dir} http_proxy='127.0.0.1:9' {interpreter} -m sphinx -N -bhtml sources build/html" dh_auto_build  # HTML generator
+	dh_installdocs "docs/build/html" -p python-gpyfft-doc
+	dh_sphinxdoc -O--buildsystem=pybuild
+endif

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/gpyfft.git



More information about the debian-science-commits mailing list