From d498e808bdef027df6da4e2dd475ce0fa9ffa1f3 Mon Sep 17 00:00:00 2001
From: Yaroslav Halchenko <debian@onerussian.com>
Date: Sat, 8 May 2010 00:36:17 -0400
Subject: [PATCH] Setting both HOME and MPLCONFIGDIR while building
 documentation (slipped through fingers somehow) (Close: #580727).

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

diff --git a/debian/changelog b/debian/changelog
index f78bf8a976..e590a04e1f 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+scikit-learn (0.3-2) unstable; urgency=low
+
+  * Setting both HOME and MPLCONFIGDIR while building documentation
+    (slipped through fingers somehow) (Closes: #580727).
+
+ -- Yaroslav Halchenko <debian@onerussian.com>  Sat, 08 May 2010 00:35:59 -0400
+
 scikit-learn (0.3-1) unstable; urgency=low
 
   * Fresh upstream release.
diff --git a/debian/rules b/debian/rules
index fb6ef5ccb2..300f95076e 100755
--- a/debian/rules
+++ b/debian/rules
@@ -16,7 +16,8 @@ override_dh_auto_build:
 	dh_auto_build
 	: # Build Documentation
 ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS)))
-	PYTHONPATH=`/bin/ls -d $$PWD/build/lib.*$(PYVER)` $(MAKE) -C doc html
+	export PYTHONPATH=`/bin/ls -d $$PWD/build/lib.*$(PYVER)` MPLCONFIGDIR=$(CURDIR)/build HOME=$(CURDIR)/build; \
+	 cd doc; $(MAKE) html
 endif
 
 
-- 
GitLab