[seaborn] 30/35: debian/rules - set mpl backed to Agg to robustify testing and resolving FTBFS (Closes: #802412)

Andreas Tille tille at debian.org
Fri Jan 20 15:00:24 UTC 2017


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

tille pushed a commit to branch debian
in repository seaborn.

commit f698ad36f03793ee02c95114d6248f38ed63cb5c
Author: Yaroslav Halchenko <debian at onerussian.com>
Date:   Sat Sep 10 15:03:55 2016 -0400

    debian/rules - set mpl backed to Agg to robustify testing and resolving FTBFS (Closes: #802412)
---
 debian/changelog |  6 ++++--
 debian/rules     | 10 ++++++++++
 2 files changed, 14 insertions(+), 2 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 491c4f7..671ca63 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,9 +1,11 @@
 seaborn (0.7.1-1) unstable; urgency=medium
 
   * Fresh upstream release
-    - should Closes: #802412
+  * debian/rules
+    - set mpl backed to Agg to robustify testing and resolving FTBFS
+      (Closes: #802412)
 
- -- Yaroslav Halchenko <debian at onerussian.com>  Sat, 10 Sep 2016 14:56:53 -0400
+ -- Yaroslav Halchenko <debian at onerussian.com>  Sat, 10 Sep 2016 15:03:38 -0400
 
 seaborn (0.6.0-1) unstable; urgency=medium
 
diff --git a/debian/rules b/debian/rules
index 282bda1..2aab01a 100755
--- a/debian/rules
+++ b/debian/rules
@@ -5,12 +5,22 @@ DH_VERBOSE=1
 export PYBUILD_NAME=seaborn
 export PYBUILD_TEST_NOSE=1
 
+export MPLCONFIGDIR=$(CURDIR)/build
+export HOME=$(CURDIR)/build
+
 export  http_proxy=http://127.0.0.1:9/
 export  https_proxy=http://127.0.0.1:9/
 
 %:
 	dh $@ --with python2,python3 --buildsystem=pybuild
 
+# Assure Agg backend for matplotlib to avoid any possible complication
+# and failed unittests, as in #802412
+override_dh_auto_configure:
+	mkdir -p $(MPLCONFIGDIR)
+	echo "backend : Agg" >| $(MPLCONFIGDIR)/matplotlibrc
+	dh_auto_configure
+
 override_dh_auto_test:
 	xvfb-run --auto-servernum --server-num=20 dh_auto_test $@
 

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



More information about the debian-science-commits mailing list