comparison CSP2/CSP2_env/env-d9b9114564458d9d-741b3de822f2aaca6c6caa4325c4afce/lib/python3.8/ensurepip/_uninstall.py @ 69:33d812a61356

planemo upload commit 2e9511a184a1ca667c7be0c6321a36dc4e3d116d
author jpayne
date Tue, 18 Mar 2025 17:55:14 -0400
parents
children
comparison
equal deleted inserted replaced
67:0e9998148a16 69:33d812a61356
1 """Basic pip uninstallation support, helper for the Windows uninstaller"""
2
3 import argparse
4 import ensurepip
5 import sys
6
7
8 def _main(argv=None):
9 parser = argparse.ArgumentParser(prog="python -m ensurepip._uninstall")
10 parser.add_argument(
11 "--version",
12 action="version",
13 version="pip {}".format(ensurepip.version()),
14 help="Show the version of pip this will attempt to uninstall.",
15 )
16 parser.add_argument(
17 "-v", "--verbose",
18 action="count",
19 default=0,
20 dest="verbosity",
21 help=("Give more output. Option is additive, and can be used up to 3 "
22 "times."),
23 )
24
25 args = parser.parse_args(argv)
26
27 return ensurepip._uninstall_helper(verbosity=args.verbosity)
28
29
30 if __name__ == "__main__":
31 sys.exit(_main())