From 12cf076118570eebbff08c6b3090e0d4798447a1 Mon Sep 17 00:00:00 2001 From: cyfraeviolae Date: Wed, 3 Apr 2024 03:17:55 -0400 Subject: no venv --- .../python3.11/site-packages/setuptools/_path.py | 29 ---------------------- 1 file changed, 29 deletions(-) delete mode 100644 venv/lib/python3.11/site-packages/setuptools/_path.py (limited to 'venv/lib/python3.11/site-packages/setuptools/_path.py') 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) -- cgit v1.2.3