ó
€
\c           @   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]   /data/av2000/b2b/venv/lib/python2.7/site-packages/pip-1.3-py2.7.egg/pip/commands/uninstall.pyR      s    				c         C   s¿   t  d d  d d  d d  ƒ } x$ | D] } | j t j | ƒ ƒ q" Wx; | j D]0 } x' t | d | ƒD] } | j | ƒ qe WqL W| j s¨ t d t	 d |  j
 ƒ ƒ ‚ n  | j d | j ƒ d  S(   Nt	   build_dirt   src_dirt   download_dirt   optionssL   You must give at least one requirement to %(name)s (see "pip help %(name)s")t   namet   auto_confirm(   R   t   Nonet   add_requirementR    t	   from_lineR   R   t   has_requirementsR   t   dictR   R   R   (   R   R   R   t   requirement_setR   t   filenamet   req(    (    s]   /data/av2000/b2b/venv/lib/python2.7/site-packages/pip-1.3-py2.7.egg/pip/commands/uninstall.pyt   run(   s    		(   t   __name__t
   __module__t   __doc__R   t   usaget   summaryR   R(   (    (    (    s]   /data/av2000/b2b/venv/lib/python2.7/site-packages/pip-1.3-py2.7.egg/pip/commands/uninstall.pyR      s   		N(	   t   pip.reqR    R   R   t   pip.basecommandR   t   pip.exceptionsR   R   (    (    (    s]   /data/av2000/b2b/venv/lib/python2.7/site-packages/pip-1.3-py2.7.egg/pip/commands/uninstall.pyt   <module>   s   