diff options
author | David Cournapeau <cournape@gmail.com> | 2009-04-21 10:45:34 +0000 |
---|---|---|
committer | David Cournapeau <cournape@gmail.com> | 2009-04-21 10:45:34 +0000 |
commit | 4418fa67db0f807405f8f326ddc50c7ac47f247c (patch) | |
tree | 7ff4ebecb52fc1c6bad28f64b20983f7d6ab5d47 /numpy/distutils/command/scons.py | |
parent | b1873ad41a86e21ab51e7f08208241f0e2d1b397 (diff) | |
download | numpy-4418fa67db0f807405f8f326ddc50c7ac47f247c.tar.gz |
Move is_bootstrapping outside scons command, may be useful elsewhere.
Diffstat (limited to 'numpy/distutils/command/scons.py')
-rw-r--r-- | numpy/distutils/command/scons.py | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/numpy/distutils/command/scons.py b/numpy/distutils/command/scons.py index 5f4c42ba4..f733dc4b2 100644 --- a/numpy/distutils/command/scons.py +++ b/numpy/distutils/command/scons.py @@ -10,6 +10,7 @@ from numpy.distutils.ccompiler import CCompiler from numpy.distutils.fcompiler import FCompiler from numpy.distutils.exec_command import find_executable from numpy.distutils import log +from numpy.distutils.misc_util import is_bootstrapping def get_scons_build_dir(): """Return the top path where everything produced by scons will be put. @@ -229,15 +230,6 @@ def select_packages(sconspkg, pkglist): raise ValueError(msg) return common -def is_bootstrapping(): - import __builtin__ - try: - __builtin__.__NUMPY_SETUP__ - return True - except AttributeError: - return False - __NUMPY_SETUP__ = False - # XXX: this is a giantic mess. Refactor this at some point. class scons(old_build_ext): # XXX: add an option to the scons command for configuration (auto/force/cache). |