/
usr
/
lib64
/
python2.6
/
site-packages
/
numpy
/
distutils
/
/usr/lib64/python2.6/site-packages/numpy/distutils
mkdir
upload
Name
Size
Mode
Actions
command/
-
0755
rm
fcompiler/
-
0755
rm
mingw/
-
0755
rm
tests/
-
0755
rm
ccompiler.py
22319
0644
edit
dl
rm
ccompiler.pyc
19961
0644
edit
dl
rm
ccompiler.pyo
19961
0644
edit
dl
rm
conv_template.py
9491
0644
edit
dl
rm
conv_template.pyc
9565
0644
edit
dl
rm
conv_template.pyo
9565
0644
edit
dl
rm
core.py
8524
0644
edit
dl
rm
core.pyc
6627
0644
edit
dl
rm
core.pyo
6627
0644
edit
dl
rm
cpuinfo.py
22514
0644
edit
dl
rm
cpuinfo.pyc
44241
0644
edit
dl
rm
cpuinfo.pyo
44241
0644
edit
dl
rm
environment.py
2268
0644
edit
dl
rm
environment.pyc
3384
0644
edit
dl
rm
environment.pyo
3384
0644
edit
dl
rm
exec_command.py
18549
0644
edit
dl
rm
exec_command.pyc
17263
0644
edit
dl
rm
exec_command.pyo
15841
0644
edit
dl
rm
extension.py
2385
0644
edit
dl
rm
extension.pyc
2136
0644
edit
dl
rm
extension.pyo
2136
0644
edit
dl
rm
from_template.py
7803
0644
edit
dl
rm
from_template.pyc
8474
0644
edit
dl
rm
from_template.pyo
8474
0644
edit
dl
rm
info.py
92
0644
edit
dl
rm
info.pyc
266
0644
edit
dl
rm
info.pyo
266
0644
edit
dl
rm
intelccompiler.py
991
0644
edit
dl
rm
intelccompiler.pyc
1438
0644
edit
dl
rm
intelccompiler.pyo
1438
0644
edit
dl
rm
interactive.py
6145
0644
edit
dl
rm
interactive.pyc
5848
0644
edit
dl
rm
interactive.pyo
5848
0644
edit
dl
rm
lib2def.py
3419
0644
edit
dl
rm
lib2def.pyc
3889
0644
edit
dl
rm
lib2def.pyo
3889
0644
edit
dl
rm
line_endings.py
1969
0644
edit
dl
rm
line_endings.pyc
2760
0644
edit
dl
rm
line_endings.pyo
2760
0644
edit
dl
rm
log.py
2438
0644
edit
dl
rm
log.pyc
2872
0644
edit
dl
rm
log.pyo
2872
0644
edit
dl
rm
mingw32ccompiler.py
18105
0644
edit
dl
rm
mingw32ccompiler.pyc
13747
0644
edit
dl
rm
mingw32ccompiler.pyo
13747
0644
edit
dl
rm
misc_util.py
79837
0644
edit
dl
rm
misc_util.pyc
76414
0644
edit
dl
rm
misc_util.pyo
75853
0644
edit
dl
rm
npy_pkg_config.py
12283
0644
edit
dl
rm
npy_pkg_config.pyc
14550
0644
edit
dl
rm
npy_pkg_config.pyo
14550
0644
edit
dl
rm
numpy_distribution.py
634
0644
edit
dl
rm
numpy_distribution.pyc
981
0644
edit
dl
rm
numpy_distribution.pyo
981
0644
edit
dl
rm
setup.py
561
0644
edit
dl
rm
setup.pyc
864
0644
edit
dl
rm
setup.pyo
864
0644
edit
dl
rm
setupscons.py
557
0644
edit
dl
rm
setupscons.pyc
909
0644
edit
dl
rm
setupscons.pyo
909
0644
edit
dl
rm
system_info.py
70927
0644
edit
dl
rm
system_info.pyc
70982
0644
edit
dl
rm
system_info.pyo
70844
0644
edit
dl
rm
unixccompiler.py
3460
0644
edit
dl
rm
unixccompiler.pyc
2893
0644
edit
dl
rm
unixccompiler.pyo
2893
0644
edit
dl
rm
__config__.py
1499
0644
edit
dl
rm
__config__.pyc
1654
0644
edit
dl
rm
__config__.pyo
1654
0644
edit
dl
rm
__init__.py
431
0644
edit
dl
rm
__init__.pyc
601
0644
edit
dl
rm
__init__.pyo
601
0644
edit
dl
rm
__version__.py
85
0644
edit
dl
rm
__version__.pyc
286
0644
edit
dl
rm
__version__.pyo
286
0644
edit
dl
rm
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)
Save
cmd:
run