shell bypass 403
U
��.e� � @ sv d dl mZ d dlmZ d dlmZ d dlmZ d dlm Z d dl
mZ d dlm
Z
d dlmZ G d d
� d
ee�ZdS )� )�absolute_import)�canonicalize_name)�Command)�SessionCommandMixin)�InstallationError)�parse_requirements)�install_req_from_line)�(protect_pip_from_modification_on_windowsc s, e Zd ZdZdZ� fdd�Zdd� Z� ZS )�UninstallCommandaB
Uninstall packages.
pip is able to uninstall most installed packages. Known exceptions are:
- Pure distutils packages installed with ``python setup.py install``, which
leave behind no metadata to determine what files were installed.
- Script wrappers installed by ``python setup.py develop``.
zU
%prog [options] <package> ...
%prog [options] -r <requirements file> ...c sV t t| �j||� | jjddddg ddd� | jjdd d
ddd
� | j�d| j� d S )Nz-rz
--requirement�requirements�append�filezjUninstall all the packages listed in the given requirements file. This option can be used multiple times.)�dest�action�default�metavar�helpz-yz--yes�yes�
store_truez2Don't ask for confirmation of uninstall deletions.)r r r r )�superr
�__init__Zcmd_optsZ
add_option�parserZinsert_option_group)�self�args�kw�� __class__� �D/usr/lib/python3.8/site-packages/pip/_internal/commands/uninstall.pyr s$ � �zUninstallCommand.__init__c C s� | � |�}i }|D ]&}t||jd�}|jr||t|j�<