/
usr
/
lib
/
imh-ultrastack-common
/
venv
/
lib
/
python3.13
/
site-packages
/
setuptools
/
/usr/lib/imh-ultrastack-common/venv/lib/python3.13/site-packages/setuptools
mkdir
upload
Name
Size
Mode
Actions
command/
-
0755
rm
compat/
-
0755
rm
config/
-
0755
rm
tests/
-
0755
rm
_distutils/
-
0755
rm
_vendor/
-
0755
rm
__pycache__/
-
0755
rm
archive_util.py
7356
0644
edit
dl
rm
build_meta.py
20234
0644
edit
dl
rm
cli-32.exe
11776
0644
edit
dl
rm
cli-64.exe
14336
0644
edit
dl
rm
cli-arm64.exe
13824
0644
edit
dl
rm
cli.exe
11776
0644
edit
dl
rm
depends.py
5965
0644
edit
dl
rm
discovery.py
21286
0644
edit
dl
rm
dist.py
45184
0644
edit
dl
rm
errors.py
3024
0644
edit
dl
rm
extension.py
6818
0644
edit
dl
rm
glob.py
6062
0644
edit
dl
rm
gui-32.exe
11776
0644
edit
dl
rm
gui-64.exe
14336
0644
edit
dl
rm
gui-arm64.exe
13824
0644
edit
dl
rm
gui.exe
11776
0644
edit
dl
rm
installer.py
5184
0644
edit
dl
rm
launch.py
820
0644
edit
dl
rm
launcher manifest.xml
628
0644
edit
dl
rm
logging.py
1261
0644
edit
dl
rm
modified.py
568
0644
edit
dl
rm
monkey.py
3733
0644
edit
dl
rm
msvc.py
42909
0644
edit
dl
rm
namespaces.py
3045
0644
edit
dl
rm
script (dev).tmpl
218
0644
edit
dl
rm
script.tmpl
138
0644
edit
dl
rm
unicode_utils.py
3189
0644
edit
dl
rm
version.py
161
0644
edit
dl
rm
warnings.py
3796
0644
edit
dl
rm
wheel.py
9532
0644
edit
dl
rm
windows_support.py
726
0644
edit
dl
rm
_core_metadata.py
11978
0644
edit
dl
rm
_discovery.py
836
0644
edit
dl
rm
_entry_points.py
2468
0644
edit
dl
rm
_imp.py
2435
0644
edit
dl
rm
_importlib.py
223
0644
edit
dl
rm
_itertools.py
657
0644
edit
dl
rm
_normalization.py
5798
0644
edit
dl
rm
_path.py
2976
0644
edit
dl
rm
_reqs.py
1380
0644
edit
dl
rm
_scripts.py
11247
0644
edit
dl
rm
_shutil.py
1578
0644
edit
dl
rm
_static.py
4855
0644
edit
dl
rm
__init__.py
9521
0644
edit
dl
rm
Edit:
/usr/lib/imh-ultrastack-common/venv/lib/python3.13/site-packages/setuptools/_shutil.py
(1578B)
"""Convenience layer on top of stdlib's shutil and os""" import os import stat from typing import Callable, TypeVar from .compat import py311 from distutils import log try: from os import chmod # pyright: ignore[reportAssignmentType] # Losing type-safety w/ pyright, but that's ok except ImportError: # pragma: no cover # Jython compatibility def chmod(*args: object, **kwargs: object) -> None: # type: ignore[misc] # Mypy reuses the imported definition anyway pass _T = TypeVar("_T") def attempt_chmod_verbose(path, mode): log.debug("changing mode of %s to %o", path, mode) try: chmod(path, mode) except OSError as e: # pragma: no cover log.debug("chmod failed: %s", e) # Must match shutil._OnExcCallback def _auto_chmod( func: Callable[..., _T], arg: str, exc: BaseException ) -> _T: # pragma: no cover """shutils onexc callback to automatically call chmod for certain functions.""" # Only retry for scenarios known to have an issue if func in [os.unlink, os.remove] and os.name == 'nt': attempt_chmod_verbose(arg, stat.S_IWRITE) return func(arg) raise exc def rmtree(path, ignore_errors=False, onexc=_auto_chmod): """ Similar to ``shutil.rmtree`` but automatically executes ``chmod`` for well know Windows failure scenarios. """ return py311.shutil_rmtree(path, ignore_errors, onexc) def rmdir(path, **opts): if os.path.isdir(path): rmtree(path, **opts) def current_umask(): tmp = os.umask(0o022) os.umask(tmp) return tmp
Save
cmd:
run