- Notifications
You must be signed in to change notification settings - Fork 31.7k
/
Copy path_uninstall.py
31 lines (24 loc) · 808 Bytes
/
_uninstall.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
"""Basic pip uninstallation support, helper for the Windows uninstaller"""
importargparse
importensurepip
importsys
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)
returnensurepip._uninstall_helper(verbosity=args.verbosity)
if__name__=="__main__":
sys.exit(_main())