Package pycv :: Module system_info
[hide private]
[frames] | no frames]

Module system_info

source code

This file defines a set of system_info classes for getting information about various resources (libraries, library directories, include directories, etc.) in the system. It is an extension of numpy's system_info.py. Currently, the following classes are available:

numpy_blas <all other classes supported by numpy>
Usage:
info_dict = get_info(<name>)

where <name> is a string 'numpy_blas', etc. For a complete list of allowed names, see the definition of get_info() function below.

Returned info_dict is a dictionary which is compatible with 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.

Modified from numpy's original system_info.py by:
Minh-Tri Pham <mtpham@ntu.edu.sg>, July 2007


Classes [hide private]
  numpy_blas_info
Functions [hide private]
 
get_gcc_version() source code
 
get_info(name, notfound_action=0)
0 - do nothing 1 - display warning message 2 - raise error
source code
 
default_dir()
Return a default location to store wisdom files and catalogs.
source code
Function Details [hide private]

default_dir()

source code 

Return a default location to store wisdom files and catalogs.

The default location is a sub-folder called '.pycv_wisdom' of SciPy's default location in Weave