Skip to content

Commit add6af3

Browse files
committed
RF - remove numpy distutils because we are not using it
1 parent 275d441 commit add6af3

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

setup.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@
1515
import sys
1616
from glob import glob
1717

18+
from distutils.core import setup
19+
1820
# For some commands, use setuptools.
1921
if len(set(('develop', 'bdist_egg', 'bdist_rpm', 'bdist', 'bdist_dumb',
2022
'bdist_wininst', 'install_egg_info', 'egg_info', 'easy_install',
2123
)).intersection(sys.argv)) > 0:
22-
# setup_egg imports setuptools setup, thus monkeypatching distutils. Note
23-
# that we have to import our own setup after this so we catch the
24-
# monkeypatched version
24+
# setup_egg imports setuptools setup, thus monkeypatching distutils.
2525
from setup_egg import extra_setuptools_args
2626

2727
# extra_setuptools_args can be defined from the line above, but it can
@@ -32,8 +32,6 @@
3232

3333

3434
def main(**extra_args):
35-
# Import late so we catch setuptools monkeypatched distutils setup
36-
from numpy.distutils.core import setup
3735
setup(name = 'nibabel',
3836
version = '1.0.0',
3937
author = 'Matthew Brett and Michael Hanke',

0 commit comments

Comments
 (0)