/usr/lib64/python2.6/site-packages/numpy/distutils
NameSizeModeActions
command/-0755rm
fcompiler/-0755rm
mingw/-0755rm
tests/-0755rm
ccompiler.py223190644editdlrm
ccompiler.pyc199610644editdlrm
ccompiler.pyo199610644editdlrm
conv_template.py94910644editdlrm
conv_template.pyc95650644editdlrm
conv_template.pyo95650644editdlrm
core.py85240644editdlrm
core.pyc66270644editdlrm
core.pyo66270644editdlrm
cpuinfo.py225140644editdlrm
cpuinfo.pyc442410644editdlrm
cpuinfo.pyo442410644editdlrm
environment.py22680644editdlrm
environment.pyc33840644editdlrm
environment.pyo33840644editdlrm
exec_command.py185490644editdlrm
exec_command.pyc172630644editdlrm
exec_command.pyo158410644editdlrm
extension.py23850644editdlrm
extension.pyc21360644editdlrm
extension.pyo21360644editdlrm
from_template.py78030644editdlrm
from_template.pyc84740644editdlrm
from_template.pyo84740644editdlrm
info.py920644editdlrm
info.pyc2660644editdlrm
info.pyo2660644editdlrm
intelccompiler.py9910644editdlrm
intelccompiler.pyc14380644editdlrm
intelccompiler.pyo14380644editdlrm
interactive.py61450644editdlrm
interactive.pyc58480644editdlrm
interactive.pyo58480644editdlrm
lib2def.py34190644editdlrm
lib2def.pyc38890644editdlrm
lib2def.pyo38890644editdlrm
line_endings.py19690644editdlrm
line_endings.pyc27600644editdlrm
line_endings.pyo27600644editdlrm
log.py24380644editdlrm
log.pyc28720644editdlrm
log.pyo28720644editdlrm
mingw32ccompiler.py181050644editdlrm
mingw32ccompiler.pyc137470644editdlrm
mingw32ccompiler.pyo137470644editdlrm
misc_util.py798370644editdlrm
misc_util.pyc764140644editdlrm
misc_util.pyo758530644editdlrm
npy_pkg_config.py122830644editdlrm
npy_pkg_config.pyc145500644editdlrm
npy_pkg_config.pyo145500644editdlrm
numpy_distribution.py6340644editdlrm
numpy_distribution.pyc9810644editdlrm
numpy_distribution.pyo9810644editdlrm
setup.py5610644editdlrm
setup.pyc8640644editdlrm
setup.pyo8640644editdlrm
setupscons.py5570644editdlrm
setupscons.pyc9090644editdlrm
setupscons.pyo9090644editdlrm
system_info.py709270644editdlrm
system_info.pyc709820644editdlrm
system_info.pyo708440644editdlrm
unixccompiler.py34600644editdlrm
unixccompiler.pyc28930644editdlrm
unixccompiler.pyo28930644editdlrm
__config__.py14990644editdlrm
__config__.pyc16540644editdlrm
__config__.pyo16540644editdlrm
__init__.py4310644editdlrm
__init__.pyc6010644editdlrm
__init__.pyo6010644editdlrm
__version__.py850644editdlrm
__version__.pyc2860644editdlrm
__version__.pyo2860644editdlrm
Edit: /usr/lib64/python2.6/site-packages/numpy/distutils/log.py (2438B)
# Colored log, requires Python 2.3 or up. import sys from distutils.log import * from distutils.log import Log as old_Log from distutils.log import _global_log from misc_util import red_text, default_text, cyan_text, green_text, is_sequence, is_string def _fix_args(args,flag=1): if is_string(args): return args.replace('%','%%') if flag and is_sequence(args): return tuple([_fix_args(a,flag=0) for a in args]) return args class Log(old_Log): def _log(self, level, msg, args): if level >= self.threshold: if args: msg = msg % _fix_args(args) if 0: if msg.startswith('copying ') and msg.find(' -> ') != -1: return if msg.startswith('byte-compiling '): return print _global_color_map[level](msg) sys.stdout.flush() def good(self, msg, *args): """If we'd log WARN messages, log this message as a 'nice' anti-warn message. """ if WARN >= self.threshold: if args: print green_text(msg % _fix_args(args)) else: print green_text(msg) sys.stdout.flush() _global_log.__class__ = Log good = _global_log.good def set_threshold(level, force=False): prev_level = _global_log.threshold if prev_level > DEBUG or force: # If we're running at DEBUG, don't change the threshold, as there's # likely a good reason why we're running at this level. _global_log.threshold = level if level <= DEBUG: info('set_threshold: setting thershold to DEBUG level, it can be changed only with force argument') else: info('set_threshold: not changing thershold from DEBUG level %s to %s' % (prev_level,level)) return prev_level def set_verbosity(v, force=False): prev_level = _global_log.threshold if v < 0: set_threshold(ERROR, force) elif v == 0: set_threshold(WARN, force) elif v == 1: set_threshold(INFO, force) elif v >= 2: set_threshold(DEBUG, force) return {FATAL:-2,ERROR:-1,WARN:0,INFO:1,DEBUG:2}.get(prev_level,1) _global_color_map = { DEBUG:cyan_text, INFO:default_text, WARN:red_text, ERROR:red_text, FATAL:red_text } # don't use INFO,.. flags in set_verbosity, these flags are for set_threshold. set_verbosity(0, force=True)