Skip to content

Commit

Permalink
MAINT: Require networkx<2.3 for Python 2
Browse files Browse the repository at this point in the history
  • Loading branch information
effigies committed May 8, 2019
1 parent 32c4de5 commit 9044554
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion nipype/info.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ def get_nipype_gitversion():
# versions
NIBABEL_MIN_VERSION = '2.1.0'
NETWORKX_MIN_VERSION = '1.9'
NETWORKX_MAX_VERSION_27 = '2.2'
NUMPY_MIN_VERSION = '1.9.0'
# Numpy bug in python 3.7:
# https://www.opensourceanswers.com/blog/you-shouldnt-use-python-37-for-data-science-right-now.html
Expand Down Expand Up @@ -135,7 +136,8 @@ def get_nipype_gitversion():
PROVIDES = ['nipype']
REQUIRES = [
'nibabel>=%s' % NIBABEL_MIN_VERSION,
'networkx>=%s' % NETWORKX_MIN_VERSION,
'networkx>=%s,<=%s ; python_version < "3.0"' % (NETWORKX_MIN_VERSION, NETWORKX_MAX_VERSION_27),
'networkx>=%s ; python_version >= "3.0"' % NETWORKX_MIN_VERSION,
'numpy>=%s,!=%s ; python_version == "2.7"' % (NUMPY_MIN_VERSION, NUMPY_BAD_VERSION_27),
'numpy>=%s ; python_version > "3.0" and python_version < "3.7"' % NUMPY_MIN_VERSION,
'numpy>=%s ; python_version >= "3.7"' % NUMPY_MIN_VERSION_37,
Expand Down

0 comments on commit 9044554

Please sign in to comment.