`8(Zc@@sddlmZddlZddlmZddlmZmZmZddl m Z ddl m Z de fdYZ dS( i(tabsolute_importN(t WheelCache(tInstallRequirementtRequirementSettparse_requirements(tCommand(tInstallationErrortUninstallCommandcB@s2eZdZdZdZdZdZdZRS(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@stt|j|||jjdddddddgdd d d |jjd d ddddd d|jjd|jdS(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((s3/tmp/pip-build-0nEYGB/pip/pip/commands/uninstall.pyRs    c C@s4|j|}tjjtt}t|j|}tddddddd|j d|d|}x3|D]+}|j t j |d|j d|qvWxG|j D]<}x3t|d|d|d|D]} |j | qWqW|jstdtd |jn|jd |jWdQXdS( 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((s3/tmp/pip-build-0nEYGB/pip/pip/commands/uninstall.pytrun-s6     (t__name__t __module__t__doc__R#tusagetsummaryRR5(((s3/tmp/pip-build-0nEYGB/pip/pip/commands/uninstall.pyR s   (t __future__RR&t pip.wheelRtpip.reqRRRtpip.basecommandRtpip.exceptionsRR(((s3/tmp/pip-build-0nEYGB/pip/pip/commands/uninstall.pyts