Skip to content

Commit 754ab33

Browse files
committed
MAINT: Add minimum setuptools version to setup.py
1 parent 3221e53 commit 754ab33

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

setup.py

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,15 @@
1111

1212
import os
1313

14-
# BEFORE importing distutils, remove MANIFEST. distutils doesn't properly
15-
# update it when the contents of directories change.
16-
if os.path.exists('MANIFEST'):
17-
os.remove('MANIFEST')
18-
19-
from setuptools import setup
14+
import setuptools
2015

2116
# Commit hash writing
2217
from nisext.sexts import get_comrec_build, read_vars_from
2318

2419
INFO = read_vars_from(os.path.join('nibabel', 'info.py'))
2520

2621
if __name__ == "__main__":
27-
setup(name='nibabel',
28-
version=INFO.VERSION,
29-
cmdclass={'build_py': get_comrec_build('nibabel')})
22+
setuptools.setup(name='nibabel',
23+
version=INFO.VERSION,
24+
setup_requires=['setuptools>=30.3.0'],
25+
cmdclass={'build_py': get_comrec_build('nibabel')})

0 commit comments

Comments
 (0)