[med-svn] [python-htseq] 13/15: add set-matplotlib-backend.patch to avoid a missing _TkAgg matplotlib backend.

Diane Trout diane-guest at moszumanska.debian.org
Thu Jun 12 21:55:40 UTC 2014


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

diane-guest pushed a commit to branch master
in repository python-htseq.

commit fbc4e1b5dbdefef5d0893d38897c8a9bc55e57b8
Author: Diane Trout <diane at ghic.org>
Date:   Thu Jun 12 11:22:30 2014 -0700

    add set-matplotlib-backend.patch to avoid a missing _TkAgg matplotlib backend.
---
 debian/changelog                            |  1 +
 debian/patches/series                       |  1 +
 debian/patches/set-matplotlib-backend.patch | 29 +++++++++++++++++++++++++++++
 3 files changed, 31 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 8283cab..5e0e54c 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -7,6 +7,7 @@ htseq (0.6.1p1-1) UNRELEASED; urgency=medium
   * Use upstream scripts to build and clean.
   * Try to delete generated test data and setup generated files.
   * Use dh_numpy to detect numpy abi version. (Closes: #742921)
+  * add set-matplotlib-backend.patch to avoid a missing _TkAgg matplotlib backend.
 
  -- Diane Trout <diane at ghic.org>  Wed, 11 Jun 2014 16:30:42 -0700
 
diff --git a/debian/patches/series b/debian/patches/series
index 4381280..4f5c8ea 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
+set-matplotlib-backend.patch
 fix_version.patch
 add_sphinx_man_pages.patch
diff --git a/debian/patches/set-matplotlib-backend.patch b/debian/patches/set-matplotlib-backend.patch
new file mode 100644
index 0000000..4fd1c22
--- /dev/null
+++ b/debian/patches/set-matplotlib-backend.patch
@@ -0,0 +1,29 @@
+Author: Diane Trout <diane at ghic.org>
+Description: Matplotlibs default backend of TkAgg doesn't seem to be
+ available by default. This forces the use of simpler backend for
+ testing.
+
+--- a/test/test.py
++++ b/test/test.py
+@@ -2,6 +2,9 @@
+ import distutils.util
+ import doctest
+ 
++import matplotlib
++matplotlib.use('agg')
++
+ build_dir = "build/lib.%s-%s" % ( distutils.util.get_platform(), sys.version[0:3] )
+ 
+ sys.path.insert( 0, os.path.join( os.getcwd(), build_dir ) )
+--- a/test/tss_test.py
++++ b/test/tss_test.py
+@@ -2,6 +2,9 @@
+ import distutils.util
+ import numpy
+ 
++import matplotlib
++matplotlib.use('agg')
++
+ build_dir = "build/lib.%s-%s" % ( distutils.util.get_platform(), sys.version[0:3] )
+ 
+ sys.path.insert( 0, os.path.join( os.getcwd(), build_dir ) )

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



More information about the debian-med-commit mailing list