summaryrefslogtreecommitdiff
path: root/numpy/distutils
diff options
context:
space:
mode:
authorcookedm <cookedm@localhost>2006-05-16 21:54:44 +0000
committercookedm <cookedm@localhost>2006-05-16 21:54:44 +0000
commita0ff0db8a3a5daa5d06f47c9c849887b23fe387b (patch)
treed9946ee7a1fb808040695a00c0a9efd56abd982b /numpy/distutils
parentb6f1d9f6fbabba198441679ffde7ac651b9fd842 (diff)
downloadnumpy-a0ff0db8a3a5daa5d06f47c9c849887b23fe387b.tar.gz
Use a hack to get numpy to install with easy_install (#81)
I couldn't find any other way; see the comments in the code or my discussion at #81 for why this is necessary.
Diffstat (limited to 'numpy/distutils')
-rw-r--r--numpy/distutils/misc_util.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/numpy/distutils/misc_util.py b/numpy/distutils/misc_util.py
index a95fee76e..27606da4e 100644
--- a/numpy/distutils/misc_util.py
+++ b/numpy/distutils/misc_util.py
@@ -608,6 +608,15 @@ class Configuration(object):
def get_distribution(self):
import distutils.core
dist = distutils.core._setup_distribution
+ # XXX Hack to get numpy installable with easy_install.
+ # The problem is easy_install runs it's own setup(), which
+ # sets up distutils.core._setup_distribution. However,
+ # when our setup() runs, that gets overwritten and lost.
+ # We can't use isinstance, as the DistributionWithoutHelpCommands
+ # class is local to a function in setuptools.command.easy_install
+ if dist is not None and \
+ repr(dist).find('DistributionWithoutHelpCommands') != -1:
+ return None
return dist
def _wildcard_get_subpackage(self, subpackage_name,