OpenQuizz
Une application de gestion des contenus pédagogiques
pip._internal.req.req_uninstall Namespace Reference

Data Structures

class  StashedUninstallPathSet
 
class  UninstallPathSet
 
class  UninstallPthEntries
 

Functions

def uninstallation_paths (dist)
 
def compact (paths)
 
def compress_for_rename (paths)
 
def compress_for_output_listing (paths)
 

Variables

 logger
 

Function Documentation

◆ compact()

def pip._internal.req.req_uninstall.compact (   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.

◆ compress_for_output_listing()

def pip._internal.req.req_uninstall.compress_for_output_listing (   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.

◆ compress_for_rename()

def pip._internal.req.req_uninstall.compress_for_rename (   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.

◆ uninstallation_paths()

def pip._internal.req.req_uninstall.uninstallation_paths (   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].

Variable Documentation

◆ logger

logger