OXIESEC PANEL
- Current Dir:
/
/
usr
/
lib
/
python3
/
dist-packages
/
numpy
/
distutils
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
10/28/2024 08:45:52 AM
rwxr-xr-x
📄
__config__.py
1.73 KB
12/05/2017 02:32:02 PM
rw-r--r--
📄
__init__.py
747 bytes
09/17/2017 01:29:38 PM
rw-r--r--
📁
__pycache__
-
10/28/2024 08:45:52 AM
rwxr-xr-x
📄
__version__.py
151 bytes
09/17/2017 01:29:38 PM
rw-r--r--
📄
ccompiler.py
27.87 KB
09/29/2017 05:31:46 PM
rw-r--r--
📁
command
-
10/28/2024 08:45:52 AM
rwxr-xr-x
📄
compat.py
218 bytes
09/17/2017 01:29:38 PM
rw-r--r--
📄
conv_template.py
9.48 KB
09/17/2017 01:29:38 PM
rw-r--r--
📄
core.py
7.99 KB
09/17/2017 01:29:38 PM
rw-r--r--
📄
cpuinfo.py
22.45 KB
09/29/2017 05:31:46 PM
rw-r--r--
📄
environment.py
2.29 KB
09/17/2017 01:29:38 PM
rw-r--r--
📄
exec_command.py
8.46 KB
09/17/2017 01:29:38 PM
rw-r--r--
📄
extension.py
2.9 KB
09/17/2017 01:29:38 PM
rw-r--r--
📁
fcompiler
-
10/28/2024 08:45:52 AM
rwxr-xr-x
📄
from_template.py
7.65 KB
09/17/2017 01:29:38 PM
rw-r--r--
📄
info.py
157 bytes
09/17/2017 01:29:38 PM
rw-r--r--
📄
intelccompiler.py
4.19 KB
09/24/2017 10:47:22 PM
rw-r--r--
📄
lib2def.py
3.43 KB
09/17/2017 01:29:38 PM
rw-r--r--
📄
line_endings.py
2 KB
09/17/2017 01:29:38 PM
rw-r--r--
📄
log.py
2.68 KB
09/17/2017 01:29:38 PM
rw-r--r--
📁
mingw
-
10/28/2024 08:45:52 AM
rwxr-xr-x
📄
mingw32ccompiler.py
24.56 KB
09/24/2017 10:47:22 PM
rw-r--r--
📄
misc_util.py
80.05 KB
09/29/2017 05:31:46 PM
rw-r--r--
📄
msvc9compiler.py
2.21 KB
09/17/2017 01:29:38 PM
rw-r--r--
📄
msvccompiler.py
1.94 KB
09/17/2017 01:29:38 PM
rw-r--r--
📄
npy_pkg_config.py
12.93 KB
09/17/2017 01:29:38 PM
rw-r--r--
📄
numpy_distribution.py
700 bytes
09/17/2017 01:29:38 PM
rw-r--r--
📄
pathccompiler.py
779 bytes
09/17/2017 01:29:38 PM
rw-r--r--
📄
setup.py
611 bytes
09/17/2017 01:29:38 PM
rw-r--r--
📄
system_info.py
83.31 KB
09/29/2017 05:31:46 PM
rw-r--r--
📁
tests
-
10/28/2024 08:45:52 AM
rwxr-xr-x
📄
unixccompiler.py
5.04 KB
09/17/2017 01:29:38 PM
rw-r--r--
Editing: log.py
Close
# 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)