Staging
v0.5.1
https://github.com/python/cpython
Revision 5533c4952cd6c44c63274874be7de06495b914ea authored by Miss Skeleton (bot) on 03 October 2020, 10:44:14 UTC, committed by Ɓukasz Langa on 04 October 2020, 15:30:49 UTC
(cherry picked from commit f97e42ef4d97dee64f45ed65170a6e77c8e46fdf)

Co-authored-by: Ram Rachum <ram@rachum.com>
1 parent fd3d00a
Raw File
Tip revision: 5533c4952cd6c44c63274874be7de06495b914ea authored by Miss Skeleton (bot) on 03 October 2020, 10:44:14 UTC
[3.9] bpo-40833: Clarify Path.rename doc-string regarding relative paths (GH-20554)
Tip revision: 5533c49
_uninstall.py
"""Basic pip uninstallation support, helper for the Windows uninstaller"""

import argparse
import ensurepip
import sys


def _main(argv=None):
    parser = argparse.ArgumentParser(prog="python -m ensurepip._uninstall")
    parser.add_argument(
        "--version",
        action="version",
        version="pip {}".format(ensurepip.version()),
        help="Show the version of pip this will attempt to uninstall.",
    )
    parser.add_argument(
        "-v", "--verbose",
        action="count",
        default=0,
        dest="verbosity",
        help=("Give more output. Option is additive, and can be used up to 3 "
              "times."),
    )

    args = parser.parse_args(argv)

    return ensurepip._uninstall_helper(verbosity=args.verbosity)


if __name__ == "__main__":
    sys.exit(_main())
back to top