HEX
Server: Apache
System: Linux zacp120.webway.host 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP Thu Apr 17 19:10:24 UTC 2025 x86_64
User: govancoz (1003)
PHP: 8.3.26
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: //usr/lib/python3.9/site-packages/pip/_internal/commands/__pycache__/uninstall.cpython-39.pyc
a

?�f��@s�ddlmZddlmZddlmZddlmZddlm	Z	ddl
mZddlm
Z
ddlmZmZdd	lmZdd
lmZer�ddlmZddlmZGd
d�dee�ZdS)�)�absolute_import)�canonicalize_name)�Command)�SessionCommandMixin)�SUCCESS)�InstallationError)�parse_requirements)�install_req_from_line�#install_req_from_parsed_requirement)�(protect_pip_from_modification_on_windows)�MYPY_CHECK_RUNNING)�Values)�Listc@s$eZdZdZdZdd�Zdd�ZdS)�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	CsD|jjddddgddd�|jjdd	d
ddd
�|j�d|j�dS)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.)rrrr)Zcmd_optsZ
add_option�parserZinsert_option_group)�self�r�D/usr/lib/python3.9/site-packages/pip/_internal/commands/uninstall.py�add_options%s�	�zUninstallCommand.add_optionsc
Cs�|�|�}i}|D]&}t||jd�}|jr||t|j�<q|jD]:}t|||d�D]&}t||jd�}|jrR||t|j�<qRq@|s�tdj	fit
�����td|vd�|��D]&}|j
|j|jdkd�}	|	r�|	��q�tS)N)�isolated)�options�sessionzRYou must give at least one requirement to {self.name} (see "pip help {self.name}")Zpip)Z
modifying_pipr)Zauto_confirm�verbose)Zget_default_sessionr	Z
isolated_mode�namerrrr
r�format�localsr�valuesZ	uninstallr�	verbosityZcommitr)
rr �argsr!Zreqs_to_uninstallr#Zreq�filenameZ
parsed_reqZuninstall_pathsetrrr�run8sH
�
�
�����
zUninstallCommand.runN)�__name__�
__module__�__qualname__�__doc__Zusagerr*rrrrrs
rN)Z
__future__rZpip._vendor.packaging.utilsrZpip._internal.cli.base_commandrZpip._internal.cli.req_commandrZpip._internal.cli.status_codesrZpip._internal.exceptionsrZpip._internal.reqrZpip._internal.req.constructorsr	r
Zpip._internal.utils.miscrZpip._internal.utils.typingrZoptparser
�typingrrrrrr�<module>s