ó
W¨¸Vc           @   s]   d  d l  m Z m Z m Z d  d l m Z d  d l m Z d e f d     YZ e   d S(   i˙˙˙˙(   t   InstallRequirementt   RequirementSett   parse_requirements(   t   Command(   t   InstallationErrort   UninstallCommandc           B   s,   e  Z d  Z d Z d Z d   Z d   Z RS(   t	   uninstalls!   %prog [OPTIONS] PACKAGE_NAMES ...s   Uninstall packagesc         C   sm   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 d  S(   Ns   -rs   --requirementt   destt   requirementst   actiont   appendt   defaultt   metavart   FILENAMEt   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.(   t   superR   t   __init__t   parsert
   add_option(   t   self(    (    s`   /data/av2000/mvv/env_mvv/lib/python2.7/site-packages/pip-1.1-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   t   argst   requirement_setR   t   filenamet   req(    (    s`   /data/av2000/mvv/env_mvv/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/commands/uninstall.pyt   run   s    		(   t   __name__t
   __module__R   t   usaget   summaryR   R%   (    (    (    s`   /data/av2000/mvv/env_mvv/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/commands/uninstall.pyR      s
   	N(	   t   pip.reqR    R   R   t   pip.basecommandR   t   pip.exceptionsR   R   (    (    (    s`   /data/av2000/mvv/env_mvv/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/commands/uninstall.pyt   <module>   s   %