Skip to content

Commit c1fd509

Browse files
committed
FIX: Work around install weirdness
1 parent bc499b8 commit c1fd509

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

nipype/info.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,12 +167,15 @@ def get_nipype_gitversion():
167167
# 'mesh': ['mayavi'] # Enable when it works
168168
}
169169

170-
_list_union = lambda x: list(set(sum(x, [])))
170+
171+
def _list_union(iterable):
172+
return list(set(sum(iterable, [])))
173+
171174

172175
# Enable a handle to install all extra dependencies at once
173176
EXTRA_REQUIRES['all'] = _list_union(EXTRA_REQUIRES.values())
174177
# dev = doc + tests + specs
175-
EXTRA_REQUIRES['dev'] = _list_union(EXTRA_REQUIRES[key]
176-
for key in ('doc', 'tests', 'specs'))
178+
EXTRA_REQUIRES['dev'] = _list_union(val for key, val in EXTRA_REQUIRES.items()
179+
if key in ('doc', 'tests', 'specs'))
177180

178181
STATUS = 'stable'

0 commit comments

Comments
 (0)