7Re c @ sV d d l m Z m Z m Z d d l m Z d d l m Z Gd d d e Z d S( i ( u InstallRequirementu RequirementSetu parse_requirements( u Command( u InstallationErrorc sJ | Ee Z d Z d Z d Z d Z d Z f d d Z d d Z S( u UninstallCommanduB
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``.
u uninstalluU
%prog [options] ...
%prog [options] -r ...u Uninstall packages.c
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( Nu -ru
--requirementu destu requirementsu actionu appendu defaultu metavaru fileu helpuj Uninstall all the packages listed in the given requirements file. This option can be used multiple times.u -yu --yesu yesu
store_trueu2 Don't ask for confirmation of uninstall deletions.i ( u superu UninstallCommandu __init__u cmd_optsu
add_optionu parseru insert_option_group( u selfu argsu kw( u __class__( u/ /tmp/pip-zej_zi-build/pip/commands/uninstall.pyu __init__ s u UninstallCommand.__init__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( Nu build_diru src_diru download_diru sessionu optionsuL You must give at least one requirement to %(name)s (see "pip help %(name)s")u nameu auto_confirm( u _build_sessionu RequirementSetu Noneu add_requirementu InstallRequirementu from_lineu requirementsu parse_requirementsu has_requirementsu InstallationErroru dictu nameu uninstallu yes( u selfu optionsu argsu sessionu requirement_setu nameu filenameu req( ( u/ /tmp/pip-zej_zi-build/pip/commands/uninstall.pyu run( s"
u UninstallCommand.run( u __name__u
__module__u __qualname__u __doc__u nameu usageu summaryu __init__u run( u
__locals__( ( u __class__u/ /tmp/pip-zej_zi-build/pip/commands/uninstall.pyu UninstallCommand s u UninstallCommandN( u pip.requ InstallRequirementu RequirementSetu parse_requirementsu pip.basecommandu Commandu pip.exceptionsu InstallationErroru UninstallCommand( ( ( u/ /tmp/pip-zej_zi-build/pip/commands/uninstall.pyu s