/
opt
/
imunify360
/
venv
/
lib
/
python3.11
/
site-packages
/
setuptools
/
_distutils
/
/opt/imunify360/venv/lib/python3.11/site-packages/setuptools/_distutils
mkdir
upload
Name
Size
Mode
Actions
command/
-
0755
rm
__pycache__/
-
0755
rm
archive_util.py
8572
0644
edit
dl
rm
bcppcompiler.py
14722
0644
edit
dl
rm
ccompiler.py
48644
0644
edit
dl
rm
cmd.py
17863
0644
edit
dl
rm
config.py
4911
0644
edit
dl
rm
core.py
9397
0644
edit
dl
rm
cygwinccompiler.py
11924
0644
edit
dl
rm
debug.py
139
0644
edit
dl
rm
dep_util.py
349
0644
edit
dl
rm
dir_util.py
8072
0644
edit
dl
rm
dist.py
50174
0644
edit
dl
rm
errors.py
3589
0644
edit
dl
rm
extension.py
10270
0644
edit
dl
rm
fancy_getopt.py
17899
0644
edit
dl
rm
filelist.py
13715
0644
edit
dl
rm
file_util.py
8213
0644
edit
dl
rm
log.py
1201
0644
edit
dl
rm
msvc9compiler.py
30188
0644
edit
dl
rm
msvccompiler.py
23577
0644
edit
dl
rm
py38compat.py
217
0644
edit
dl
rm
py39compat.py
1964
0644
edit
dl
rm
spawn.py
3495
0644
edit
dl
rm
sysconfig.py
18928
0644
edit
dl
rm
text_file.py
12085
0644
edit
dl
rm
unixccompiler.py
15602
0644
edit
dl
rm
util.py
18100
0644
edit
dl
rm
version.py
12951
0644
edit
dl
rm
versionpredicate.py
5205
0644
edit
dl
rm
_collections.py
5300
0644
edit
dl
rm
_functools.py
1771
0644
edit
dl
rm
_log.py
43
0644
edit
dl
rm
_macos_compat.py
239
0644
edit
dl
rm
_modified.py
2411
0644
edit
dl
rm
_msvccompiler.py
19616
0644
edit
dl
rm
__init__.py
359
0644
edit
dl
rm
Edit:
/opt/imunify360/venv/lib/python3.11/site-packages/setuptools/_distutils/_modified.py
(2411B)
"""Timestamp comparison of files and groups of files.""" import functools import os.path from .errors import DistutilsFileError from .py39compat import zip_strict from ._functools import splat def _newer(source, target): return not os.path.exists(target) or ( os.path.getmtime(source) > os.path.getmtime(target) ) def newer(source, target): """ Is source modified more recently than target. Returns True if 'source' is modified more recently than 'target' or if 'target' does not exist. Raises DistutilsFileError if 'source' does not exist. """ if not os.path.exists(source): raise DistutilsFileError("file '%s' does not exist" % os.path.abspath(source)) return _newer(source, target) def newer_pairwise(sources, targets, newer=newer): """ Filter filenames where sources are newer than targets. Walk two filename iterables in parallel, testing if each source is newer than its corresponding target. Returns a pair of lists (sources, targets) where source is newer than target, according to the semantics of 'newer()'. """ newer_pairs = filter(splat(newer), zip_strict(sources, targets)) return tuple(map(list, zip(*newer_pairs))) or ([], []) def newer_group(sources, target, missing='error'): """ Is target out-of-date with respect to any file in sources. Return True if 'target' is out-of-date with respect to any file listed in 'sources'. In other words, if 'target' exists and is newer than every file in 'sources', return False; otherwise return True. ``missing`` controls how to handle a missing source file: - error (default): allow the ``stat()`` call to fail. - ignore: silently disregard any missing source files. - newer: treat missing source files as "target out of date". This mode is handy in "dry-run" mode: it will pretend to carry out commands that wouldn't work because inputs are missing, but that doesn't matter because dry-run won't run the commands. """ def missing_as_newer(source): return missing == 'newer' and not os.path.exists(source) ignored = os.path.exists if missing == 'ignore' else None return any( missing_as_newer(source) or _newer(source, target) for source in filter(ignored, sources) ) newer_pairwise_group = functools.partial(newer_pairwise, newer=newer_group)
Save
cmd:
run