Skip to content

Commit 47fad80

Browse files
committed
FIX: Numpy dependency
1 parent 9f30f79 commit 47fad80

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

nipype/info.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,10 @@ def get_nipype_gitversion():
101101
# versions
102102
NIBABEL_MIN_VERSION = '2.1.0'
103103
NETWORKX_MIN_VERSION = '1.9'
104+
NUMPY_MIN_VERSION = '1.9.0'
104105
# Numpy bug in python 3.7:
105106
# https://www.opensourceanswers.com/blog/you-shouldnt-use-python-37-for-data-science-right-now.html
106-
NUMPY_MIN_VERSION = '1.9.0' if sys.version_info < (3, 7) else '1.15.4'
107+
NUMPY_MIN_VERSION_37 = '1.15.3'
107108
SCIPY_MIN_VERSION = '0.14'
108109
TRAITS_MIN_VERSION = '4.6'
109110
DATEUTIL_MIN_VERSION = '2.2'
@@ -136,6 +137,7 @@ def get_nipype_gitversion():
136137
'nibabel>=%s' % NIBABEL_MIN_VERSION,
137138
'networkx>=%s' % NETWORKX_MIN_VERSION,
138139
'numpy>=%s' % NUMPY_MIN_VERSION,
140+
'numpy>=%s ; python_version >= "3.7"' % NUMPY_MIN_VERSION_37,
139141
'python-dateutil>=%s' % DATEUTIL_MIN_VERSION,
140142
'scipy>=%s' % SCIPY_MIN_VERSION,
141143
'traits>=%s' % TRAITS_MIN_VERSION,

0 commit comments

Comments
 (0)