[sasview] 04/08: Update build system to new docs

Stuart Prescott stuart at debian.org
Tue Oct 31 14:52:43 UTC 2017


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

stuart pushed a commit to branch master
in repository sasview.

commit c62b47d6067082750f721d72c65c8402f9344be5
Author: Stuart Prescott <stuart at debian.org>
Date:   Wed Nov 1 01:12:08 2017 +1100

    Update build system to new docs
    
    FIXME: either remove non-html formats from doc-base or work out how to build them
---
 debian/patches/limit-docs-sasview.patch | 19 +++++++++++++++++++
 debian/patches/series                   |  1 +
 debian/rules                            |  7 ++++---
 3 files changed, 24 insertions(+), 3 deletions(-)

diff --git a/debian/patches/limit-docs-sasview.patch b/debian/patches/limit-docs-sasview.patch
new file mode 100644
index 0000000..615b10e
--- /dev/null
+++ b/debian/patches/limit-docs-sasview.patch
@@ -0,0 +1,19 @@
+Description: Skip building documentation for external modules
+ This produces partly broken documentation where the sasview docs will be
+ missing various cross-references and information that would normally be
+ embedded. This patch should eventually be removed and the full documentation
+ built instead.
+Author: Stuart Prescott <stuart at debian.org>
+--- a/docs/sphinx-docs/build_sphinx.py
++++ b/docs/sphinx-docs/build_sphinx.py
+@@ -258,8 +258,8 @@
+ def rebuild():
+     clean()
+     setup_source_temp()
+-    retrieve_user_docs()
+-    retrieve_bumps_docs()
++    #retrieve_user_docs()
++    #retrieve_bumps_docs()
+     #fetch_katex(version=KATEX_VERSION, destination=KATEX_PARENT)
+     #fetch_mathjax()
+     apidoc()
diff --git a/debian/patches/series b/debian/patches/series
index f436b68..cedb468 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
+limit-docs-sasview.patch
 sphinx-local-mathjax.patch
diff --git a/debian/rules b/debian/rules
index 2f9f8a9..3d37eed 100755
--- a/debian/rules
+++ b/debian/rules
@@ -9,6 +9,9 @@ export PYBUILD_NAME=sasview
 # not wanted for shared libraries.
 export DEB_BUILD_MAINT_OPTIONS = hardening=+all,-pie
 
+# SasView insists on writing to ~/sasview.log
+export HOME = $(CURDIR)/build/
+
 %:
 	dh $@ --with python2,sphinxdoc --buildsystem=pybuild
 
@@ -20,9 +23,7 @@ override_dh_install:
 
 override_dh_auto_build:
 	dh_auto_build
-	cd docs/sphinx-docs; make html
-	cd docs/sphinx-docs; make info
-	cd docs/sphinx-docs; make man
+	cd docs/sphinx-docs; python build_sphinx.py
 	ln -sf /usr/share/javascript/mathjax/ docs/sphinx-docs/build/html/_static/mathjax
 
 override_dh_fixperms:

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



More information about the debian-science-commits mailing list