/usr/share/cagefs-skeleton/opt/alt/python312/lib/python3.12/site-packages/setuptools
import os import sys from typing import Union _Path = Union[str, os.PathLike] def ensure_directory(path): """Ensure that the parent directory of `path` exists""" dirname = os.path.dirname(path) os.makedirs(dirname, exist_ok=True) def same_path(p1: _Path, p2: _Path) -> bool: """Differs from os.path.samefile because it does not require paths to exist. Purely string based (no comparison between i-nodes). >>> same_path("a/b", "./a/b") True >>> same_path("a/b", "a/./b") True >>> same_path("a/b", "././a/b") True >>> same_path("a/b", "./a/b/c/..") True >>> same_path("a/b", "../a/b/c") False >>> same_path("a", "a/b") False """ return normpath(p1) == normpath(p2) def normpath(filename: _Path) -> str: """Normalize a file/dir name for comparison purposes.""" # See pkg_resources.normalize_path for notes about cygwin file = os.path.abspath(filename) if sys.platform == 'cygwin' else filename return os.path.normcase(os.path.realpath(os.path.normpath(file)))
.
Edit
..
Edit
__init__.py
Edit
__pycache__
Edit
_core_metadata.py
Edit
_distutils
Edit
_entry_points.py
Edit
_imp.py
Edit
_importlib.py
Edit
_itertools.py
Edit
_normalization.py
Edit
_path.py
Edit
_reqs.py
Edit
_vendor
Edit
archive_util.py
Edit
build_meta.py
Edit
command
Edit
config
Edit
dep_util.py
Edit
depends.py
Edit
discovery.py
Edit
dist.py
Edit
errors.py
Edit
extension.py
Edit
extern
Edit
glob.py
Edit
installer.py
Edit
launch.py
Edit
logging.py
Edit
modified.py
Edit
monkey.py
Edit
msvc.py
Edit
namespaces.py
Edit
package_index.py
Edit
py312compat.py
Edit
sandbox.py
Edit
script (dev).tmpl
Edit
script.tmpl
Edit
unicode_utils.py
Edit
version.py
Edit
warnings.py
Edit
wheel.py
Edit
windows_support.py
Edit