mirror of
https://github.com/python/cpython.git
synced 2025-11-11 14:44:57 +00:00
Issue #19726: actually running 'hg add' helps...
This commit is contained in:
parent
fdf3a620a2
commit
60f08c83f9
1 changed files with 30 additions and 0 deletions
30
Lib/ensurepip/_uninstall.py
Normal file
30
Lib/ensurepip/_uninstall.py
Normal file
|
|
@ -0,0 +1,30 @@
|
||||||
|
"""Basic pip uninstallation support, helper for the Windows uninstaller"""
|
||||||
|
|
||||||
|
import argparse
|
||||||
|
import ensurepip
|
||||||
|
|
||||||
|
|
||||||
|
def main():
|
||||||
|
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()
|
||||||
|
|
||||||
|
ensurepip._uninstall(verbosity=args.verbosity)
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
main()
|
||||||
Loading…
Add table
Add a link
Reference in a new issue