summaryrefslogtreecommitdiff
path: root/venv/lib/python3.11/site-packages/setuptools/_path.py
diff options
context:
space:
mode:
authorcyfraeviolae <cyfraeviolae>2024-04-03 03:17:55 -0400
committercyfraeviolae <cyfraeviolae>2024-04-03 03:17:55 -0400
commit12cf076118570eebbff08c6b3090e0d4798447a1 (patch)
tree3ba25e17e3c3a5e82316558ba3864b955919ff72 /venv/lib/python3.11/site-packages/setuptools/_path.py
parentc45662ff3923b34614ddcc8feb9195541166dcc5 (diff)
no venv
Diffstat (limited to 'venv/lib/python3.11/site-packages/setuptools/_path.py')
-rw-r--r--venv/lib/python3.11/site-packages/setuptools/_path.py29
1 files changed, 0 insertions, 29 deletions
diff --git a/venv/lib/python3.11/site-packages/setuptools/_path.py b/venv/lib/python3.11/site-packages/setuptools/_path.py
deleted file mode 100644
index 3767523..0000000
--- a/venv/lib/python3.11/site-packages/setuptools/_path.py
+++ /dev/null
@@ -1,29 +0,0 @@
-import os
-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 os.path.normpath(p1) == os.path.normpath(p2)