summaryrefslogtreecommitdiff
path: root/numpy/distutils/core.py
diff options
context:
space:
mode:
authorPearu Peterson <pearu.peterson@gmail.com>2006-04-01 14:25:19 +0000
committerPearu Peterson <pearu.peterson@gmail.com>2006-04-01 14:25:19 +0000
commit6cc9da7aea03502abbccf7454f73e0fc308358f5 (patch)
tree2a48134fbdfa2879fe1a9b0713746bc3a736e686 /numpy/distutils/core.py
parent8680d6f6df88d32e07a25c441fa29ac7a1095919 (diff)
downloadnumpy-6cc9da7aea03502abbccf7454f73e0fc308358f5.tar.gz
Reorg. code so that numpy.distutils could be used from cwd that contains math.py.
Diffstat (limited to 'numpy/distutils/core.py')
-rw-r--r--numpy/distutils/core.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/numpy/distutils/core.py b/numpy/distutils/core.py
index 878834197..6e8eb0db9 100644
--- a/numpy/distutils/core.py
+++ b/numpy/distutils/core.py
@@ -4,6 +4,8 @@ try:
from setuptools import setup as old_setup
# very old setuptools don't have this
from setuptools.command import bdist_egg
+ # easy_install imports math, it may be picked up from cwd
+ from setuptools.command import develop, easy_install
have_setuptools = 1
except ImportError:
from distutils.core import setup as old_setup
@@ -40,7 +42,6 @@ numpy_cmdclass = {'build': build.build,
'bdist_rpm': bdist_rpm.bdist_rpm,
}
if have_setuptools:
- from setuptools.command import bdist_egg, develop, easy_install
from numpy.distutils.command import egg_info
numpy_cmdclass['bdist_egg'] = bdist_egg.bdist_egg
numpy_cmdclass['develop'] = develop.develop