File tree 1 file changed +3
-1
lines changed
1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -101,6 +101,7 @@ def get_nipype_gitversion():
101
101
# versions
102
102
NIBABEL_MIN_VERSION = '2.1.0'
103
103
NETWORKX_MIN_VERSION = '1.9'
104
+ NETWORKX_MAX_VERSION_27 = '2.2'
104
105
NUMPY_MIN_VERSION = '1.9.0'
105
106
# Numpy bug in python 3.7:
106
107
# https://www.opensourceanswers.com/blog/you-shouldnt-use-python-37-for-data-science-right-now.html
@@ -135,7 +136,8 @@ def get_nipype_gitversion():
135
136
PROVIDES = ['nipype' ]
136
137
REQUIRES = [
137
138
'nibabel>=%s' % NIBABEL_MIN_VERSION ,
138
- 'networkx>=%s' % NETWORKX_MIN_VERSION ,
139
+ 'networkx>=%s,<=%s ; python_version < "3.0"' % (NETWORKX_MIN_VERSION , NETWORKX_MAX_VERSION_27 ),
140
+ 'networkx>=%s ; python_version >= "3.0"' % NETWORKX_MIN_VERSION ,
139
141
'numpy>=%s,!=%s ; python_version == "2.7"' % (NUMPY_MIN_VERSION , NUMPY_BAD_VERSION_27 ),
140
142
'numpy>=%s ; python_version > "3.0" and python_version < "3.7"' % NUMPY_MIN_VERSION ,
141
143
'numpy>=%s ; python_version >= "3.7"' % NUMPY_MIN_VERSION_37 ,
You can’t perform that action at this time.
0 commit comments