Hackfut Security File Manager
Current Path:
/opt/alt/python27/lib64/python2.7/site-packages/numpy/distutils
opt
/
alt
/
python27
/
lib64
/
python2.7
/
site-packages
/
numpy
/
distutils
/
📁
..
📄
__config__.py
(1.73 KB)
📄
__config__.pyc
(1.87 KB)
📄
__config__.pyo
(1.87 KB)
📄
__init__.py
(747 B)
📄
__init__.pyc
(736 B)
📄
__init__.pyo
(736 B)
📄
__version__.py
(151 B)
📄
__version__.pyc
(416 B)
📄
__version__.pyo
(416 B)
📄
ccompiler.py
(23.61 KB)
📄
ccompiler.pyc
(21.52 KB)
📄
ccompiler.pyo
(21.52 KB)
📁
command
📄
compat.py
(218 B)
📄
compat.pyc
(618 B)
📄
compat.pyo
(618 B)
📄
conv_template.py
(9.44 KB)
📄
conv_template.pyc
(9.64 KB)
📄
conv_template.pyo
(9.64 KB)
📄
core.py
(7.77 KB)
📄
core.pyc
(5.91 KB)
📄
core.pyo
(5.91 KB)
📄
cpuinfo.py
(22.41 KB)
📄
cpuinfo.pyc
(45.44 KB)
📄
cpuinfo.pyo
(45.44 KB)
📄
environment.py
(2.29 KB)
📄
environment.pyc
(3.57 KB)
📄
environment.pyo
(3.57 KB)
📄
exec_command.py
(19.96 KB)
📄
exec_command.pyc
(18.12 KB)
📄
exec_command.pyo
(16.73 KB)
📄
extension.py
(2.88 KB)
📄
extension.pyc
(2.67 KB)
📄
extension.pyo
(2.67 KB)
📁
fcompiler
📄
from_template.py
(7.62 KB)
📄
from_template.pyc
(8.48 KB)
📄
from_template.pyo
(8.48 KB)
📄
info.py
(157 B)
📄
info.pyc
(401 B)
📄
info.pyo
(401 B)
📄
intelccompiler.py
(3.99 KB)
📄
intelccompiler.pyc
(5.01 KB)
📄
intelccompiler.pyo
(5.01 KB)
📄
lib2def.py
(3.43 KB)
📄
lib2def.pyc
(3.99 KB)
📄
lib2def.pyo
(3.99 KB)
📄
line_endings.py
(2 KB)
📄
line_endings.pyc
(2.92 KB)
📄
line_endings.pyo
(2.92 KB)
📄
log.py
(2.68 KB)
📄
log.pyc
(3.12 KB)
📄
log.pyo
(3.12 KB)
📁
mingw
📄
mingw32ccompiler.py
(21.21 KB)
📄
mingw32ccompiler.pyc
(16.69 KB)
📄
mingw32ccompiler.pyo
(16.63 KB)
📄
misc_util.py
(79.76 KB)
📄
misc_util.pyc
(76.86 KB)
📄
misc_util.pyo
(76.29 KB)
📄
msvc9compiler.py
(2.16 KB)
📄
msvc9compiler.pyc
(2.67 KB)
📄
msvc9compiler.pyo
(2.67 KB)
📄
msvccompiler.py
(1.97 KB)
📄
msvccompiler.pyc
(2.42 KB)
📄
msvccompiler.pyo
(2.42 KB)
📄
npy_pkg_config.py
(12.93 KB)
📄
npy_pkg_config.pyc
(15.38 KB)
📄
npy_pkg_config.pyo
(15.38 KB)
📄
numpy_distribution.py
(700 B)
📄
numpy_distribution.pyc
(1.12 KB)
📄
numpy_distribution.pyo
(1.12 KB)
📄
pathccompiler.py
(779 B)
📄
pathccompiler.pyc
(1.24 KB)
📄
pathccompiler.pyo
(1.24 KB)
📄
setup.py
(589 B)
📄
setup.pyc
(974 B)
📄
setup.pyo
(974 B)
📄
site.cfg
(174 B)
📄
system_info.py
(82.43 KB)
📄
system_info.pyc
(78.9 KB)
📄
system_info.pyo
(78.78 KB)
📁
tests
📄
unixccompiler.py
(4.55 KB)
📄
unixccompiler.pyc
(3.78 KB)
📄
unixccompiler.pyo
(3.78 KB)
Editing: log.py
# Colored log, requires Python 2.3 or up. from __future__ import division, absolute_import, print_function import sys from distutils.log import * from distutils.log import Log as old_Log from distutils.log import _global_log if sys.version_info[0] < 3: from .misc_util import (red_text, default_text, cyan_text, green_text, is_sequence, is_string) else: from numpy.distutils.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 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 threshold to DEBUG level,' ' it can be changed only with force argument') else: info('set_threshold: not changing threshold 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)
Upload File
Create Folder