Skip to content

Commit 3a37ba0

Browse files
committed
MNT: Constrain scipy < 1.3 if Python < 3.5
1 parent dcf1208 commit 3a37ba0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Diff for: nipype/info.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,8 @@ def get_nipype_gitversion():
110110
# Numpy drops 2.7 support in 1.17
111111
NUMPY_MAX_VERSION_27 = '1.17.0'
112112
SCIPY_MIN_VERSION = '0.14'
113+
# Scipy drops 2.7 and 3.4 support in 1.3
114+
SCIPY_MAX_VERSION_34 = '1.3.0'
113115
TRAITS_MIN_VERSION = '4.6'
114116
DATEUTIL_MIN_VERSION = '2.2'
115117
FUTURE_MIN_VERSION = '0.16.0'
@@ -157,7 +159,8 @@ def get_nipype_gitversion():
157159
'pydot>=%s' % PYDOT_MIN_VERSION,
158160
'pydotplus',
159161
'python-dateutil>=%s' % DATEUTIL_MIN_VERSION,
160-
'scipy>=%s' % SCIPY_MIN_VERSION,
162+
'scipy>=%s ; python_version >= "3.5"' % SCIPY_MIN_VERSION,
163+
'scipy>=%s,<%s ; python_version <= "3.4"' % (SCIPY_MIN_VERSION, SCIPY_MAX_VERSION_34),
161164
'simplejson>=%s' % SIMPLEJSON_MIN_VERSION,
162165
'traits>=%s,!=5.0' % TRAITS_MIN_VERSION,
163166
]

0 commit comments

Comments
 (0)