ž 7’Re›c@sVddlmZmZmZddlmZddlmZGdd„deƒZdS(i(uInstallRequirementuRequirementSetuparse_requirements(uCommand(uInstallationErrorcsJ|EeZdZdZdZdZdZ‡fdd†Zdd„Z‡S( uUninstallCommanduB 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 ...uUninstall packages.c s‰tt|ƒj||Ž|jjdddddddgdd d d ƒ|jjd d ddddd dƒ|jjd|jƒdS(Nu-ru --requirementudestu requirementsuactionuappendudefaultumetavarufileuhelpujUninstall all the packages listed in the given requirements file. This option can be used multiple times.u-yu--yesuyesu store_trueu2Don't ask for confirmation of uninstall deletions.i(usuperuUninstallCommandu__init__ucmd_optsu add_optionuparseruinsert_option_group(uselfuargsukw(u __class__(u//tmp/pip-zej_zi-build/pip/commands/uninstall.pyu__init__s    uUninstallCommand.__init__c CsΪ|j|ƒ}tddddddd|ƒ}x$|D]}|jtj|ƒƒq7WxA|jD]6}x-t|d|d|ƒD]}|j|ƒq€WqaW|jsΓt dt d|j ƒƒ‚n|j d|j ƒdS( Nu build_dirusrc_diru download_dirusessionuoptionsuLYou must give at least one requirement to %(name)s (see "pip help %(name)s")unameu auto_confirm(u_build_sessionuRequirementSetuNoneuadd_requirementuInstallRequirementu from_lineu requirementsuparse_requirementsuhas_requirementsuInstallationErrorudictunameu uninstalluyes(uselfuoptionsuargsusessionurequirement_setunameufilenameureq((u//tmp/pip-zej_zi-build/pip/commands/uninstall.pyurun(s"    uUninstallCommand.run( u__name__u __module__u __qualname__u__doc__unameuusageusummaryu__init__urun(u __locals__((u __class__u//tmp/pip-zej_zi-build/pip/commands/uninstall.pyuUninstallCommands  uUninstallCommandN( upip.requInstallRequirementuRequirementSetuparse_requirementsupip.basecommanduCommandupip.exceptionsuInstallationErroruUninstallCommand(((u//tmp/pip-zej_zi-build/pip/commands/uninstall.pyus