|
OpenQuizz
Une application de gestion des contenus pédagogiques
|
Data Structures | |
| class | IndexGroupCommand |
| class | RequirementCommand |
| class | SessionCommandMixin |
Functions | |
| def | warn_if_run_as_root () |
| def | with_cleanup (func) |
Variables | |
| logger | |
| KEEPABLE_TEMPDIR_TYPES | |
Contains the Command base classes that depend on PipSession. The classes in this module are in a separate module so the commands not needing download / PackageFinder capability don't unnecessarily import the PackageFinder machinery and all its vendored dependencies, etc.
| def pip._internal.cli.req_command.warn_if_run_as_root | ( | ) |
Output a warning for sudo users on Unix. In a virtual environment, sudo pip still writes to virtualenv. On Windows, users may run pip as Administrator without issues. This warning only applies to Unix root users outside of virtualenv.
| def pip._internal.cli.req_command.with_cleanup | ( | func | ) |
Decorator for common logic related to managing temporary directories.
| KEEPABLE_TEMPDIR_TYPES |
| logger |