Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

up_robust_doc_building patch to point HOME to build/ directory (Close…

…s: #652903)
  • Loading branch information...
commit 5ff9a317cf1a765c582c0537edef3d6d4e09c9d1 1 parent 49324c1
@yarikoptic yarikoptic authored
Showing with 46 additions and 0 deletions.
  1. +7 −0 debian/changelog
  2. +39 −0 debian/patches/up_robust_doc_building
View
7 debian/changelog
@@ -1,3 +1,10 @@
+pymvpa2 (2.0.0-2) unstable; urgency=low
+
+ * up_robust_doc_building patch to point HOME to build/ directory
+ (Closes: #652903)
+
+ -- Yaroslav Halchenko <debian@onerussian.com> Wed, 21 Dec 2011 18:34:32 -0500
+
pymvpa2 (2.0.0-1) unstable; urgency=low
* Long-awaited upstream release of mvpa2
View
39 debian/patches/up_robust_doc_building
@@ -0,0 +1,39 @@
+From: Yaroslav Halchenko <debian@onerussian.com>
+Subject: ENH: assure use of Agg backend during doc builds and HOME=build/
+ Will be absorbed upstream as soon as it is proven to work ;-)
+Vendor: Debian
+Bug-Debian: http://bugs.debian.org/652903
+
+--- a/Makefile
++++ b/Makefile
+@@ -170,10 +170,16 @@ references:
+ @echo "I: Generating references"
+ tools/bib2rst_ref.py
+
+-htmldoc: examples2rst build pics
++# Since mpl doesn't take env variables
++mpl-stamp: build
++ echo "backend : Agg" >| $(CURDIR)/build/matplotlibrc
++ touch $@
++
++htmldoc: examples2rst build pics mpl-stamp
+ @echo "I: Creating an HTML version of documentation"
+ cd $(DOC_DIR) && MVPA_EXTERNALS_RAISE_EXCEPTION=off \
+ PYTHONPATH=$(CURDIR):$(PYTHONPATH) \
++ MPLCONFIGDIR=$(CURDIR)/build HOME=$(CURDIR)/build \
+ $(MAKE) html BUILDDIR=$(BUILDDIR) SPHINXOPTS="$(SPHINXOPTS)"
+ cd $(HTML_DIR)/generated && ln -sf ../_static
+ cd $(HTML_DIR)/examples && ln -sf ../_static
+@@ -182,10 +188,11 @@ htmldoc: examples2rst build pics
+ cp $(DOCSRC_DIR)/pics/history_splash.png $(HTML_DIR)/_images/
+
+ pdfdoc: examples2rst build pics pdfdoc-stamp
+-pdfdoc-stamp:
++pdfdoc-stamp: mpl-stamp
+ @echo "I: Creating a PDF version of documentation"
+ cd $(DOC_DIR) && MVPA_EXTERNALS_RAISE_EXCEPTION=off \
+ PYTHONPATH=$(CURDIR):$(PYTHONPATH) \
++ MPLCONFIGDIR=$(CURDIR)/build HOME=$(CURDIR)/build \
+ $(MAKE) latex BUILDDIR=$(BUILDDIR) SPHINXOPTS="$(SPHINXOPTS)"
+ cd $(LATEX_DIR) && $(MAKE) all-pdf
+ touch $@
Please sign in to comment.
Something went wrong with that request. Please try again.