[med-svn] [python-skbio] 04/09: use Agg matplotlib backend in doc build

Kevin Murray daube-guest at moszumanska.debian.org
Mon Nov 30 02:37:52 UTC 2015


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

daube-guest pushed a commit to branch master
in repository python-skbio.

commit 0db4d68ed52d9d1737031d9833fd49aecb93de1f
Author: Kevin Murray <spam at kdmurray.id.au>
Date:   Mon Nov 30 12:48:32 2015 +1100

    use Agg matplotlib backend in doc build
---
 ...ce-use-of-Agg-backend-no-X-for-matplotlib.patch | 31 ++++++++++++++++++++++
 debian/patches/series                              |  1 +
 2 files changed, 32 insertions(+)

diff --git a/debian/patches/0003-Force-use-of-Agg-backend-no-X-for-matplotlib.patch b/debian/patches/0003-Force-use-of-Agg-backend-no-X-for-matplotlib.patch
new file mode 100644
index 0000000..6813276
--- /dev/null
+++ b/debian/patches/0003-Force-use-of-Agg-backend-no-X-for-matplotlib.patch
@@ -0,0 +1,31 @@
+From: Kevin Murray <spam at kdmurray.id.au>
+Date: Mon, 30 Nov 2015 12:48:08 +1100
+Subject: Force use of Agg backend (no X) for matplotlib
+
+---
+ doc/source/conf.py | 5 +++++
+ 1 file changed, 5 insertions(+)
+
+diff --git a/doc/source/conf.py b/doc/source/conf.py
+index 6e44c17..cd40a43 100644
+--- a/doc/source/conf.py
++++ b/doc/source/conf.py
+@@ -5,6 +5,10 @@ import glob
+ import sys
+ import os
+ 
++# Force matplotlib to not use any Xwindows backend.
++import matplotlib
++matplotlib.use('Agg')
++
+ # Check that dependencies are installed and the correct version if necessary
+ import sphinx
+ import sphinx_bootstrap_theme
+@@ -53,6 +57,7 @@ extensions = [
+ 
+ # Determine if the matplotlib has a recent enough version of the
+ # plot_directive.
++
+ try:
+     from matplotlib.sphinxext import plot_directive
+ except ImportError:
diff --git a/debian/patches/series b/debian/patches/series
index 3e9586e..c286cbe 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
 0001-Use-stock-debian-sphinx.patch
 0002-Disable-intersphinx.patch
+0003-Force-use-of-Agg-backend-no-X-for-matplotlib.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/python-skbio.git



More information about the debian-med-commit mailing list