From cef68acbf1b32a52e80c58fbd253c2f7574e86b9 Mon Sep 17 00:00:00 2001 From: Mathieu Bridon Date: Fri, 23 Sep 2016 15:19:19 +0200 Subject: [PATCH] doc: Properly find the version The conf.py can't import nibabel if nibabel isn't installed, as is the case when installing nibabel for the first time. --- doc/source/conf.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/doc/source/conf.py b/doc/source/conf.py index c33617f664..d2b9704a64 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -22,8 +22,6 @@ import sys import os -import nibabel - # Check for external Sphinx extensions we depend on try: import numpydoc @@ -89,7 +87,7 @@ # built documents. # # The short X.Y version. -version = nibabel.__version__ +version = rel['VERSION'] # The full version, including alpha/beta/rc tags. release = version