AlkantarClanX12

Your IP : 3.141.29.90


Current Path : /proc/self/root/usr/lib/python3.6/site-packages/pip/commands/__pycache__/
Upload File :
Current File : //proc/self/root/usr/lib/python3.6/site-packages/pip/commands/__pycache__/uninstall.cpython-36.pyc

3

�PfD�@s`ddlmZddlZddlmZddlmZmZmZddl	m
Z
ddlmZGdd�de
�Z
dS)	�)�absolute_importN)�
WheelCache)�InstallRequirement�RequirementSet�parse_requirements)�Command)�InstallationErrorcs4eZdZdZdZdZdZ�fdd�Zdd�Z�Z	S)	�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``.
    �	uninstallzU
      %prog [options] <package> ...
      %prog [options] -r <requirements file> ...zUninstall packages.c	sVtt|�j||�|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)�superr	�__init__Zcmd_optsZ
add_option�parserZinsert_option_group)�self�args�kw)�	__class__��/usr/lib/python3.6/uninstall.pyrszUninstallCommand.__init__c
Cs�|j|���}tjjt�t��}t|j|�}tddd|j||d�}x$|D]}|j	t
j||j|d��qFWx2|jD](}x"t
||||d�D]}	|j	|	�q�WqnW|js�tdt|jd���|j|jd�WdQRXdS)N)Z	build_dirZsrc_dirZdownload_dir�isolated�session�wheel_cache)rr )�optionsrr zLYou must give at least one requirement to %(name)s (see "pip help %(name)s"))�name)Zauto_confirm)Z_build_session�pip�indexZ
FormatControl�setr�	cache_dirrZ
isolated_modeZadd_requirementrZ	from_linerrZhas_requirementsr�dictr"r
r)
rr!rrZformat_controlr Zrequirement_setr"�filenameZreqrrr�run-s6
zUninstallCommand.run)
�__name__�
__module__�__qualname__�__doc__r"ZusageZsummaryrr)�
__classcell__rr)rrr	
s	r	)Z
__future__rr#Z	pip.wheelrZpip.reqrrrZpip.basecommandrZpip.exceptionsrr	rrrr�<module>s