OwlCyberSecurity - MANAGER
Edit File: uninstall.cpython-38.pyc
U ʗRe` � @ s� d dl Z d dlmZ d dlmZ d dlmZ d dlmZ d dl m Z d dlmZm Z d dlmZ d d lmZ d d lmZ d dlmZmZ d dlmZ e �e�ZG d d� de e�ZdS )� N)�Values)�List)�canonicalize_name)� cmdoptions)�Command)�SessionCommandMixin�warn_if_run_as_root)�SUCCESS)�InstallationError)�parse_requirements)�install_req_from_line�#install_req_from_parsed_requirement)�(protect_pip_from_modification_on_windowsc @ s8 e Zd ZdZdZdd�dd�Zeee e d�dd �Z dS ) �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> ...N)�returnc C sT | j jddddg ddd� | j jdd d ddd � | j �t�� � | 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 )�cmd_opts� add_optionr �root_user_action�parser�insert_option_group)�self� r! ��/builddir/build/BUILDROOT/alt-python38-pip-22.2.1-2.el8.x86_64/opt/alt/python38/lib/python3.8/site-packages/pip/_internal/commands/uninstall.py�add_options% s$ ��zUninstallCommand.add_options)�options�argsr c C s� | � |�}i }|D ]4}t||jd�}|jr:||t|j�<