summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPearu Peterson <pearu.peterson@gmail.com>2004-04-14 18:52:08 +0000
committerPearu Peterson <pearu.peterson@gmail.com>2004-04-14 18:52:08 +0000
commit3cb02b56a10d3fe8cf6a7ae7b36e9a2f52661c2e (patch)
tree3966c800a63880200e998da937f8f5b9f234271d
parentb88d9f6b9cdb70a3adeef3a22b35b90b553bd6b8 (diff)
downloadnumpy-0.3.0.tar.gz
Impl. a way to ignore software in the system, e.g. set ATLAS=None to pretend that Atlas libraries are not availiable.v0.3.0
-rw-r--r--scipy_distutils/system_info.py13
1 files changed, 11 insertions, 2 deletions
diff --git a/scipy_distutils/system_info.py b/scipy_distutils/system_info.py
index a6bf3db5f..ea27f7351 100644
--- a/scipy_distutils/system_info.py
+++ b/scipy_distutils/system_info.py
@@ -4,6 +4,7 @@ This file defines a set of system_info classes for getting
information about various resources (libraries, library directories,
include directories, etc.) in the system. Currently, the following
classes are available:
+
atlas_info
atlas_threads_info
atlas_blas_info
@@ -21,8 +22,8 @@ classes are available:
blas_src_info
numpy_info
numarray_info
- boost_python
- agg2
+ boost_python_info
+ agg2_info
wx_info
gdk_pixbuf_xlib_2_info
gdk_pixbuf_2_info
@@ -42,6 +43,11 @@ Usage:
distutils.setup keyword arguments. If info_dict == {}, then the
asked resource is not available (system_info could not find it).
+ Several *_info classes specify an environment variable to specify
+ the locations of software. When setting the corresponding environment
+ variable to 'None' then the software will be ignored, even when it
+ is available in system.
+
Global parameters:
system_info.search_static_first - search static libraries (.a)
in precedence to shared ones (.so, .sl) if enabled.
@@ -333,6 +339,9 @@ class system_info:
dirs = self.cp.get(section, key).split(os.pathsep)
if self.dir_env_var and os.environ.has_key(self.dir_env_var):
d = os.environ[self.dir_env_var]
+ if d=='None':
+ print 'Disabled',self.__class__.__name__,'(%s is None)' % (self.dir_env_var)
+ return []
if os.path.isfile(d):
dirs = [os.path.dirname(d)] + dirs
l = getattr(self,'_lib_names',[])