Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

ENH: assure use of Agg backend during doc builds and HOME=build

Vendor: Debian
Bug-Debian: http://bugs.debian.org/652903
  • Loading branch information...
commit d32b5ebb98313b266d041aa1c22da1cdc30dd314 1 parent b9a5295
@yarikoptic yarikoptic authored
Showing with 9 additions and 2 deletions.
  1. +9 −2 Makefile
View
11 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.