ó •abc@@s‚ddlmZddlZddlmZddlmZmZmZddl m Z ddl m Z de fd„ƒYZ dS( i(tabsolute_importN(t WheelCache(tInstallRequirementtRequirementSettparse_requirements(tCommand(tInstallationErrortUninstallCommandcB@s2eZdZdZdZdZd„Zd„ZRS(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] ... %prog [options] -r ...sUninstall packages.c O@s‰tt|ƒj||Ž|jjdddddddgdd d d ƒ|jjd d ddddd dƒ|jjd|jƒdS(Ns-rs --requirementtdestt requirementstactiontappendtdefaulttmetavartfilethelpsjUninstall all the packages listed in the given requirements file. This option can be used multiple times.s-ys--yestyest store_trues2Don't ask for confirmation of uninstall deletions.i(tsuperRt__init__tcmd_optst add_optiontparsertinsert_option_group(tselftargstkw((s:/usr/lib/python2.7/site-packages/pip/commands/uninstall.pyRs    c C@s4|j|ƒ}tjjtƒtƒƒ}t|j|ƒ}tddddddd|j d|d|ƒ}x3|D]+}|j t j |d|j d|ƒƒqvWxG|j D]<}x3t|d|d|d|ƒD]} |j | ƒqÔWq¯W|jstdtd |jƒƒ‚n|jd |jƒWdQXdS( Nt build_dirtsrc_dirt download_dirtisolatedtsessiont wheel_cachetoptionssLYou must give at least one requirement to %(name)s (see "pip help %(name)s")tnamet auto_confirm(t_build_sessiontpiptindext FormatControltsetRt cache_dirRtNonet isolated_modetadd_requirementRt from_lineR Rthas_requirementsRtdictR#RR( RR"RR tformat_controlR!trequirement_setR#tfilenametreq((s:/usr/lib/python2.7/site-packages/pip/commands/uninstall.pytrun-s6     (t__name__t __module__t__doc__R#tusagetsummaryRR5(((s:/usr/lib/python2.7/site-packages/pip/commands/uninstall.pyR s   (t __future__RR&t pip.wheelRtpip.reqRRRtpip.basecommandRtpip.exceptionsRR(((s:/usr/lib/python2.7/site-packages/pip/commands/uninstall.pyts