3 šig˜ã@s UdZddlZddlmZddlmZmZmZddlm Z eddƒZ e dd d ƒe d d d ƒe dddƒe dddƒe dddƒe dddƒe dddƒe dddƒe d d!d"ƒe d#d$d%ƒe d&d'd(ƒe d)d*d+ƒe d,d-d.ƒe d/d0d1ƒe d2d3d4ƒe d5d6d7ƒd8œZ ee e f e ee d9œd:d;„Z e ee d<œd=d>„ZdS)?z% Package containing all pip commands éN)Ú namedtuple)ÚAnyÚDictÚOptional)ÚCommandÚ CommandInfoz module_path, class_name, summaryzpip._internal.commands.installÚInstallCommandzInstall packages.zpip._internal.commands.downloadÚDownloadCommandzDownload packages.z pip._internal.commands.uninstallÚUninstallCommandzUninstall packages.zpip._internal.commands.freezeÚ FreezeCommandz1Output installed packages in requirements format.zpip._internal.commands.listÚ ListCommandzList installed packages.zpip._internal.commands.showÚ ShowCommandz*Show information about installed packages.zpip._internal.commands.checkÚ CheckCommandz7Verify installed packages have compatible dependencies.z$pip._internal.commands.configurationZConfigurationCommandz&Manage local and global configuration.zpip._internal.commands.searchÚ SearchCommandzSearch PyPI for packages.zpip._internal.commands.cacheZ CacheCommandz%Inspect and manage pip's wheel cache.zpip._internal.commands.indexZ IndexCommandz3Inspect information available from package indexes.zpip._internal.commands.wheelÚ WheelCommandz$Build wheels from your requirements.zpip._internal.commands.hashÚ HashCommandz#Compute hashes of package archives.z!pip._internal.commands.completionÚCompletionCommandz-A helper command used for command completion.zpip._internal.commands.debugZ DebugCommandz&Show information useful for debugging.zpip._internal.commands.helpÚ HelpCommandzShow help for commands.)ÚinstallÚdownloadÚ uninstallÚfreezeÚlistÚshowÚcheckÚconfigÚsearchÚcacheÚindexÚwheelÚhashÚ completionÚdebugÚhelp)ÚnameÚkwargsÚreturncKs:t|\}}}tj|ƒ}t||ƒ}|f||dœ|—Ž}|S)zF Create an instance of the Command class with the given name. )r$Úsummary)Ú commands_dictÚ importlibÚ import_moduleÚgetattr)r$r%Ú module_pathÚ class_namer'ÚmoduleÚ command_classÚcommand©r1ú>/tmp/pip-build-88gy_88q/pip/pip/_internal/commands/__init__.pyÚcreate_commandhs   r3)r$r&cCs6ddlm}|jƒ}||tjƒƒ}|r.|dSdSdS)zCommand name auto-correct.r)Úget_close_matchesN)Údifflibr4Úlowerr(Úkeys)r$r4Úclose_commandsr1r1r2Úget_similar_commandsts  r9)Ú__doc__r)Ú collectionsrZtypingrrrZpip._internal.cli.base_commandrrr(Ústrr3r9r1r1r1r2ÚsŽ