Skip to content

Commit cef68ac

Browse files
Mathieu Bridonjehane
Mathieu Bridon
authored and
jehane
committed
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.
1 parent ec4567f commit cef68ac

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

doc/source/conf.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@
2222
import sys
2323
import os
2424

25-
import nibabel
26-
2725
# Check for external Sphinx extensions we depend on
2826
try:
2927
import numpydoc
@@ -89,7 +87,7 @@
8987
# built documents.
9088
#
9189
# The short X.Y version.
92-
version = nibabel.__version__
90+
version = rel['VERSION']
9391
# The full version, including alpha/beta/rc tags.
9492
release = version
9593

0 commit comments

Comments
 (0)