3 ]@s&dZddlmZddlmZddlmZddlmZddl m Z ddl m Z ddl mZdd lmZdd lmZdd lmZdd lmZdd lmZddlmZejeejee je e je ejeejeejeejeejeejeejeejei Zeeeeeeeeee ee g ZdddZddZddZ dS)z% Package containing all pip commands )absolute_import)CompletionCommand)DownloadCommand) FreezeCommand) HashCommand) HelpCommand) ListCommand) CheckCommand) SearchCommand) ShowCommand)InstallCommand)UninstallCommand) WheelCommandTccs:|rttt}ntj}x|D]\}}||jfVqWdS)z5Yields sorted (command name, command summary) tuples.N)_sort_commands commands_dictcommands_orderitemssummary)orderedcmditemsname command_classr4/tmp/pip-build-8jg9gmni/pip/pip/commands/__init__.py get_summaries4s  rcCs6ddlm}|j}||tj}|r.|dSdSdS)zCommand name auto-correct.r)get_close_matchesFN)difflibrlowerrkeys)rrclose_commandsrrrget_similar_commands@s  r csfdd}t|j|dS)Nc s(yj|dStk r"dSXdS)N)index ValueError)key)orderrrkeyfnOsz_sort_commands..keyfn)r%)sortedr)cmddictr&r'r)r&rrNs rN)T)!__doc__ __future__rpip.commands.completionrpip.commands.downloadrpip.commands.freezerpip.commands.hashrpip.commands.helprpip.commands.listrpip.commands.checkr pip.commands.searchr pip.commands.showr pip.commands.installr pip.commands.uninstallr pip.commands.wheelrrrrrr rrrrrsP