/opt/cloudlinux/venv/lib/python3.11/site-packages/setuptools/_distutils
NameSizeModeActions
command/-0755rm
compat/-0755rm
compilers/-0755rm
tests/-0755rm
__pycache__/-0755rm
archive_util.py84840644editdlrm
ccompiler.py5240644editdlrm
cmd.py213440644editdlrm
core.py93640644editdlrm
cygwinccompiler.py5940644editdlrm
debug.py1390644editdlrm
dep_util.py3490644editdlrm
dir_util.py68640644editdlrm
dist.py556990644editdlrm
errors.py30920644editdlrm
extension.py111550644editdlrm
fancy_getopt.py178950644editdlrm
filelist.py153370644editdlrm
file_util.py78110644editdlrm
log.py12000644editdlrm
spawn.py39630644editdlrm
sysconfig.py197280644editdlrm
text_file.py121010644editdlrm
unixccompiler.py2120644editdlrm
util.py175340644editdlrm
version.py126190644editdlrm
versionpredicate.py52050644editdlrm
zosccompiler.py580644editdlrm
_log.py420644editdlrm
_macos_compat.py2390644editdlrm
_modified.py32110644editdlrm
_msvccompiler.py3350644editdlrm
__init__.py3590644editdlrm
Edit: /opt/cloudlinux/venv/lib/python3.11/site-packages/setuptools/_distutils/log.py (1200B)
""" A simple log mechanism styled after PEP 282. Retained for compatibility and should not be used. """ import logging import warnings from ._log import log as _global_log DEBUG = logging.DEBUG INFO = logging.INFO WARN = logging.WARN ERROR = logging.ERROR FATAL = logging.FATAL log = _global_log.log debug = _global_log.debug info = _global_log.info warn = _global_log.warning error = _global_log.error fatal = _global_log.fatal def set_threshold(level): orig = _global_log.level _global_log.setLevel(level) return orig def set_verbosity(v): if v <= 0: set_threshold(logging.WARN) elif v == 1: set_threshold(logging.INFO) elif v >= 2: set_threshold(logging.DEBUG) class Log(logging.Logger): """distutils.log.Log is deprecated, please use an alternative from `logging`.""" def __init__(self, threshold=WARN): warnings.warn(Log.__doc__) # avoid DeprecationWarning to ensure warn is shown super().__init__(__name__, level=threshold) @property def threshold(self): return self.level @threshold.setter def threshold(self, level): self.setLevel(level) warn = logging.Logger.warning