From f4b1d2120ffaf524442f3fc04508a670c6baf6f1 Mon Sep 17 00:00:00 2001
From: Yaroslav Halchenko <debian@onerussian.com>
Date: Sat, 8 May 2010 12:48:20 -0400
Subject: [PATCH] Set HOME and MPLCONFIGDIR while unittesting as well (Closes:
 #580727)

---
 debian/changelog | 6 ++++++
 debian/rules     | 3 ++-
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index e590a04e1f..bd61797a4d 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+scikit-learn (0.3-3) unstable; urgency=low
+
+  * Set HOME and MPLCONFIGDIR while unittesting as well (Closes: #580727)
+
+ -- Yaroslav Halchenko <debian@onerussian.com>  Sat, 08 May 2010 12:47:07 -0400
+
 scikit-learn (0.3-2) unstable; urgency=low
 
   * Setting both HOME and MPLCONFIGDIR while building documentation
diff --git a/debian/rules b/debian/rules
index 300f95076e..8c585626a9 100755
--- a/debian/rules
+++ b/debian/rules
@@ -37,7 +37,8 @@ python-install%:
 
 ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
 	: # Run unittests
-	python$* /usr/bin/nosetests --exclude manifold \
+	export MPLCONFIGDIR=$(CURDIR)/build HOME=$(CURDIR)/build; \
+	 python$* /usr/bin/nosetests --exclude manifold \
 	  $(PACKAGE_ROOT_DIR)/usr/lib/python$*/*/scikits/learn
 else
 	: # Skip unittests due to nocheck
-- 
GitLab