403Webshell
Server IP : 127.0.0.1  /  Your IP : 216.73.216.109
Web Server : Apache/2.4.54 (Win64) OpenSSL/1.1.1q PHP/8.1.10
System : Windows NT DESKTOP-E5T4RUN 10.0 build 19045 (Windows 10) AMD64
User : SERVERWEB ( 0)
PHP Version : 8.1.10
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : OFF |  Perl : OFF |  Python : OFF |  Sudo : OFF |  Pkexec : OFF
Directory :  C:/cygwin64/lib/python3.6/site-packages/pip/_internal/commands/__pycache__/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : C:/cygwin64/lib/python3.6/site-packages/pip/_internal/commands/__pycache__/uninstall.cpython-36.pyc
3

�N�a�
�@s�ddlZddlmZddlmZddlmZddlmZddl	m
Z
mZddlm
Z
ddlmZdd	lmZdd
lmZmZddlmZeje�ZGdd
�d
ee
�ZdS)�N)�Values)�List)�canonicalize_name)�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@s8eZdZdZdZdd�dd�Zeeee	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	CsD|jjddddgddd�|jjdd	d
ddd
�|jjd|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�/usr/lib/python3.6/uninstall.py�add_options$szUninstallCommand.add_options)�options�argsrc
Cs|j|�}i}x<|D]4}t||jd�}|jr<||t|j�<qtjd|�qWxH|jD]>}x8t|||d�D]&}t	||jd�}|jrh||t|j�<qhWqTW|s�t
d|j�d|j�d���td|kd�x2|j�D]&}|j
|j|jd	kd
�}	|	r�|	j�q�Wt�tS)N)�isolatedzSInvalid requirement: %r ignored - the uninstall command expects named requirements.)r�sessionz*You must give at least one requirement to z (see "pip help z")Zpip)Z
modifying_pipr)Zauto_confirm�verbose)Zget_default_sessionrZ
isolated_mode�namer�loggerZwarningrr
rr	r
�valuesZ	uninstallr�	verbosityZcommitrr)
rrr r"Zreqs_to_uninstallr$Zreq�filenameZ
parsed_reqZuninstall_pathsetrrr�run;s>



zUninstallCommand.run)�__name__�
__module__�__qualname__�__doc__�usagerrr�str�intr)rrrrrs	r)ZloggingZoptparserZtypingrZpip._vendor.packaging.utilsrZpip._internal.cli.base_commandrZpip._internal.cli.req_commandrrZpip._internal.cli.status_codesrZpip._internal.exceptionsr	Zpip._internal.reqr
Zpip._internal.req.constructorsrrZpip._internal.utils.miscr
Z	getLoggerr*r%rrrrr�<module>s


Youez - 2016 - github.com/yon3zu
LinuXploit