summaryrefslogtreecommitdiff
path: root/numpy/distutils/core.py
diff options
context:
space:
mode:
authorcookedm <cookedm@localhost>2006-06-28 19:08:32 +0000
committercookedm <cookedm@localhost>2006-06-28 19:08:32 +0000
commit05bb6ebdf72a580c16b20a2c6b29c1a1f6c254f1 (patch)
treef42681026100dd0d124835a66e080ccf163c5e01 /numpy/distutils/core.py
parentd5a14e423b8ef4dce76d377d95b41e1665fa2945 (diff)
downloadnumpy-05bb6ebdf72a580c16b20a2c6b29c1a1f6c254f1.tar.gz
Put back the test for bdist_egg when using setuptools
Diffstat (limited to 'numpy/distutils/core.py')
-rw-r--r--numpy/distutils/core.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/numpy/distutils/core.py b/numpy/distutils/core.py
index 9da40d439..cd8854d2a 100644
--- a/numpy/distutils/core.py
+++ b/numpy/distutils/core.py
@@ -7,6 +7,11 @@ if 'setuptools' in sys.modules:
from setuptools import setup as old_setup
# easy_install imports math, it may be picked up from cwd
from setuptools.command import develop, easy_install
+ try:
+ # very old versions of setuptools don't have this
+ from setuptools.command import bdist_egg
+ except ImportError:
+ have_setuptools = False
else:
from distutils.core import setup as old_setup
have_setuptools = False