File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 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():
101101# versions
102102NIBABEL_MIN_VERSION = '2.1.0'
103103NETWORKX_MIN_VERSION = '1.9'
104+ NETWORKX_MAX_VERSION_27 = '2.2'
104105NUMPY_MIN_VERSION = '1.9.0'
105106# Numpy bug in python 3.7:
106107# https://www.opensourceanswers.com/blog/you-shouldnt-use-python-37-for-data-science-right-now.html
@@ -135,7 +136,8 @@ def get_nipype_gitversion():
135136PROVIDES = ['nipype' ]
136137REQUIRES = [
137138 '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 ,
139141 'numpy>=%s,!=%s ; python_version == "2.7"' % (NUMPY_MIN_VERSION , NUMPY_BAD_VERSION_27 ),
140142 'numpy>=%s ; python_version > "3.0" and python_version < "3.7"' % NUMPY_MIN_VERSION ,
141143 'numpy>=%s ; python_version >= "3.7"' % NUMPY_MIN_VERSION_37 ,
You can’t perform that action at this time.
0 commit comments