Let us walk on the 3-isogeny graph
|
Data Structures | |
class | StashedUninstallPathSet |
class | UninstallPathSet |
class | UninstallPthEntries |
Functions | |
Generator[str, None, None] | _script_names (str bin_dir, str script_name, bool is_gui) |
Callable[..., Generator[Any, None, None]] | _unique (Callable[..., Generator[Any, None, None]] fn) |
Generator[str, None, None] | uninstallation_paths (BaseDistribution dist) |
Set[str] | compact (Iterable[str] paths) |
Set[str] | compress_for_rename (Iterable[str] paths) |
Tuple[Set[str], Set[str]] | compress_for_output_listing (Iterable[str] paths) |
Variables | |
logger = getLogger(__name__) | |
Create the fully qualified name of the files created by {console,gui}_scripts for the given ``dist``. Returns the list of file names
Definition at line 21 of file req_uninstall.py.
References i.
Referenced by UninstallPathSet.from_dist().
|
protected |
Definition at line 40 of file req_uninstall.py.
References i.
Set[str] compact | ( | Iterable[str] | paths | ) |
Compact a path set to contain the minimal number of paths necessary to contain all paths in the set. If /a/path/ and /a/path/to/a/file.txt are both in the set, leave only the shorter path.
Definition at line 98 of file req_uninstall.py.
References i.
Referenced by UninstallPathSet._allowed_to_proceed(), pip._internal.req.req_uninstall.compress_for_output_listing(), and UninstallPathSet.remove().
Tuple[Set[str], Set[str]] compress_for_output_listing | ( | Iterable[str] | paths | ) |
Returns a tuple of 2 sets of which paths to display to user The first set contains paths that would be deleted. Files of a package are not added and the top-level directory of the package has a '*' added at the end - to signify that all it's contents are removed. The second set contains files that would have been skipped in the above folders.
Definition at line 151 of file req_uninstall.py.
References pip._internal.req.req_uninstall.compact(), and i.
Referenced by UninstallPathSet._allowed_to_proceed().
Set[str] compress_for_rename | ( | Iterable[str] | paths | ) |
Returns a set containing the paths that need to be renamed. This set may include directories when the original sequence of paths included every file on disk.
Definition at line 117 of file req_uninstall.py.
References i.
Referenced by UninstallPathSet.remove().
Generator[str, None, None] uninstallation_paths | ( | BaseDistribution | dist | ) |
Yield all the uninstallation paths for dist based on RECORD-without-.py[co] Yield paths to all the files in RECORD. For each .py file in RECORD, add the .pyc and .pyo in the same directory. UninstallPathSet.add() takes care of the __pycache__ .py[co]. If RECORD is not found, raises UninstallationError, with possible information from the INSTALLER file. https://packaging.python.org/specifications/recording-installed-packages/
Definition at line 55 of file req_uninstall.py.
References i.
Referenced by UninstallPathSet.from_dist().
logger = getLogger(__name__) |
Definition at line 18 of file req_uninstall.py.