Skip to content

Commit 408854c

Browse files
committed
fix: setuptools to be more precise
1 parent ab11581 commit 408854c

File tree

2 files changed

+4
-25
lines changed

2 files changed

+4
-25
lines changed

setup.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,9 @@ def main():
119119
with open(ver_file) as infofile:
120120
exec(infofile.read(), globals(), ldict)
121121

122+
SETUP_REQUIRES = ['future']
123+
if sys.version_info <= (3, 4):
124+
SETUP_REQUIRES.append('configparser')
122125
setup(
123126
name=ldict['NAME'],
124127
maintainer=ldict['MAINTAINER'],
@@ -134,14 +137,13 @@ def main():
134137
platforms=ldict['PLATFORMS'],
135138
version=ldict['VERSION'],
136139
install_requires=ldict['REQUIRES'],
137-
setup_requires=['future', 'configparser'],
140+
setup_requires=SETUP_REQUIRES,
138141
provides=ldict['PROVIDES'],
139142
packages=find_packages(),
140143
package_data={'nipype': testdatafiles},
141144
scripts=glob('bin/*'),
142145
cmdclass={'build_py': BuildWithCommitInfoCommand},
143146
tests_require=ldict['TESTS_REQUIRES'],
144-
test_suite='nose.collector',
145147
zip_safe=False,
146148
extras_require=ldict['EXTRA_REQUIRES'],
147149
entry_points='''

setup_egg.py

Lines changed: 0 additions & 23 deletions
This file was deleted.

0 commit comments

Comments
 (0)