U n a @szddlmZddlmZddlmZddlmZddlm Z ddl m Z ddl m Z mZddlmZGd d d eeZd S) )absolute_import)canonicalize_name)Command)SessionCommandMixin)InstallationError)parse_requirements)install_req_from_line#install_req_from_parsed_requirement)(protect_pip_from_modification_on_windowscs,eZdZdZdZfddZddZZS)UninstallCommandaB 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``. zU %prog [options] ... %prog [options] -r ...c sVtt|j|||jjddddgddd|jjdd d d d d |jd|jdS)Nz-rz --requirement requirementsappendfilezjUninstall all the packages listed in the given requirements file. This option can be used multiple times.)destactiondefaultmetavarhelpz-yz--yesyes store_truez2Don't ask for confirmation of uninstall deletions.)rrrr)superr __init__cmd_opts add_optionparserinsert_option_group)selfargskw __class__aC:\Users\vtejo\AppData\Local\Temp\pip-unpacked-wheel-6mt8ur68\pip\_internal\commands\uninstall.pyr"s$ zUninstallCommand.__init__c Cs||}i}|D]&}t||jd}|jr||t|j<q|jD]:}t|||dD]&}t||jd}|jrR||t|j<qRq@|stdj ft t d|kd| D]&}|j |j|jdkd} | r| qdS)N)isolated)optionssessionzRYou must give at least one requirement to {self.name} (see "pip help {self.name}")pip) modifying_pipr) auto_confirmverbose)get_default_sessionr isolated_modenamerr rr rformatlocalsr values uninstallr verbositycommit) rr$rr%Zreqs_to_uninstallr,reqfilename parsed_reqZuninstall_pathsetr!r!r"run5sJ    zUninstallCommand.run)__name__ __module__ __qualname____doc__usagerr6 __classcell__r!r!rr"r s  r N) __future__rpip._vendor.packaging.utilsrpip._internal.cli.base_commandrpip._internal.cli.req_commandrpip._internal.exceptionsrZpip._internal.reqrpip._internal.req.constructorsrr pip._internal.utils.miscr r r!r!r!r"s