[med-svn] [python-skbio] 01/06: Build docs w/ python 3, fix matplotlib weirdness

Kevin Murray daube-guest at moszumanska.debian.org
Thu Feb 18 00:53:55 UTC 2016


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 b29f34f514351c5fdc7093923f453fae69456f57
Author: Kevin Murray <spam at kdmurray.id.au>
Date:   Wed Feb 17 16:21:12 2016 -0800

    Build docs w/ python 3, fix matplotlib weirdness
---
 debian/control | 6 +++---
 debian/rules   | 8 ++++----
 2 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/debian/control b/debian/control
index d965037..b282b5e 100644
--- a/debian/control
+++ b/debian/control
@@ -9,9 +9,9 @@ Build-Depends: debhelper (>= 9),
                dh-python,
                python-all-dev (>= 2.7),
                python3-all-dev,
-               python-sphinx,
-               python-sphinx-bootstrap-theme,
-               python-numpydoc,
+               python3-sphinx,
+               python3-sphinx-bootstrap-theme,
+               python3-numpydoc,
                python-setuptools,
                python3-setuptools,
                python-bz2file,
diff --git a/debian/rules b/debian/rules
index bf57fa4..5ba553d 100755
--- a/debian/rules
+++ b/debian/rules
@@ -4,6 +4,7 @@
 #export DH_VERBOSE=1
 
 export PYBUILD_NAME=skbio
+export MPLBACKEND=agg
 DOCPKG=python-$(PYBUILD_NAME)-doc
 
 %:
@@ -11,13 +12,12 @@ DOCPKG=python-$(PYBUILD_NAME)-doc
 
 override_dh_auto_build:
 	dh_auto_build
-	PYTHONPATH=.pybuild/pythonX.Y_2.7/build/ \
+	PYTHONPATH=$(shell echo .pybuild/pythonX.Y_3.5*/build/) \
 		http_proxy='127.0.0.1:9' \
-		sphinx-build -b html -d doc/build/doctrees doc/source doc/build/html
+		python3 `which sphinx-build` -b html -d doc/build/doctrees doc/source doc/build/html
 
 override_dh_auto_test:
-	#Loads of failures at this point.
-	dh_auto_test || true
+	dh_auto_test
 
 override_dh_auto_clean:
 	if [ "`find . -name "*.pyo"`" = "" ] ; then echo no need to clean up ; else dh_auto_clean; fi

-- 
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