~inkscape.dev/inkscape-devlibs64/trunk

« back to all changes in this revision

Viewing changes to python/Lib/ensurepip/_uninstall.py

  • Committer: Eduard Braun
  • Date: 2016-10-22 16:51:19 UTC
  • Revision ID: eduard.braun2@gmx.de-20161022165119-9eosgy6lp8j1kzli
Update Python to version 2.7.12

Included modules:
  coverage 4.2
  lxml 3.6.4
  numpy 1.11.2
  scour 0.35
  six 1.10.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
"""Basic pip uninstallation support, helper for the Windows uninstaller"""
2
 
 
3
 
import argparse
4
 
import ensurepip
5
 
 
6
 
 
7
 
def _main(argv=None):
8
 
    parser = argparse.ArgumentParser(prog="python -m ensurepip._uninstall")
9
 
    parser.add_argument(
10
 
        "--version",
11
 
        action="version",
12
 
        version="pip {}".format(ensurepip.version()),
13
 
        help="Show the version of pip this will attempt to uninstall.",
14
 
    )
15
 
    parser.add_argument(
16
 
        "-v", "--verbose",
17
 
        action="count",
18
 
        default=0,
19
 
        dest="verbosity",
20
 
        help=("Give more output. Option is additive, and can be used up to 3 "
21
 
              "times."),
22
 
    )
23
 
 
24
 
    args = parser.parse_args(argv)
25
 
 
26
 
    ensurepip._uninstall_helper(verbosity=args.verbosity)
27
 
 
28
 
 
29
 
if __name__ == "__main__":
30
 
    _main()