ó
^\kdc           @   sV   d  d l  m Z m Z m Z d  d l m Z d  d l m Z d e f d     YZ d S(   i˙˙˙˙(   t   InstallRequirementt   RequirementSett   parse_requirements(   t   Command(   t   InstallationErrort   UninstallCommandc           B   s2   e  Z d  Z d Z d Z d Z d   Z d   Z RS(   sB  
    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``.
    t	   uninstallsU   
      %prog [options] <package> ...
      %prog [options] -r <requirements file> ...s   Uninstall packages.c         O   s   t  t |   j | |   |  j j d d d d d d d g  d d	 d
 d |  j j d d d d d d d
 d |  j j d |  j  d  S(   Ns   -rs   --requirementt   destt   requirementst   actiont   appendt   defaultt   metavart   filet   helpsj   Uninstall all the packages listed in the given requirements file.  This option can be used multiple times.s   -ys   --yest   yest
   store_trues2   Don't ask for confirmation of uninstall deletions.i    (   t   superR   t   __init__t   cmd_optst
   add_optiont   parsert   insert_option_group(   t   selft   argst   kw(    (    s=   /var/www/testScraper/venv/build/pip/pip/commands/uninstall.pyR      s    				c      	   C   sÚ   |  j  |  } t d d  d d  d d  d |  } x$ | D] } | j t j |   q7 WxA | j D]6 } x- t | d | d | D] } | j |  q Wqa W| j sĂ t	 d t
 d |  j    n  | j d | j  d  S(	   Nt	   build_dirt   src_dirt   download_dirt   sessiont   optionssL   You must give at least one requirement to %(name)s (see "pip help %(name)s")t   namet   auto_confirm(   t   _build_sessionR   t   Nonet   add_requirementR    t	   from_lineR   R   t   has_requirementsR   t   dictR   R   R   (   R   R   R   R   t   requirement_setR   t   filenamet   req(    (    s=   /var/www/testScraper/venv/build/pip/pip/commands/uninstall.pyt   run(   s"    		(   t   __name__t
   __module__t   __doc__R   t   usaget   summaryR   R*   (    (    (    s=   /var/www/testScraper/venv/build/pip/pip/commands/uninstall.pyR      s   		N(	   t   pip.reqR    R   R   t   pip.basecommandR   t   pip.exceptionsR   R   (    (    (    s=   /var/www/testScraper/venv/build/pip/pip/commands/uninstall.pyt   <module>   s   