Y@sdZddlmZddlmZddlmZddlmZddl 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) WheelCommandTccsM|rttt}n tj}x"|D]\}}||jfVq+WdS)z5Yields sorted (command name, command summary) tuples.N)_sort_commands commands_dictcommands_orderitemssummary)orderedcmditemsname command_classr4/tmp/pip-build-3puug3g5/pip/pip/commands/__init__.py get_summaries4s  rcCsGddlm}|j}||tj}|r?|dSdSdS)zCommand name auto-correct.r)get_close_matchesFN)difflibrlowerrkeys)rrclose_commandsrrrget_similar_commands@s  r cs(fdd}t|jd|S)Nc s2yj|dSWntk r-dSYnXdS)N)index ValueError)key)orderrrkeyfnOs z_sort_commands..keyfnr%)sortedr)cmddictr&r'r)r&rrNsrN)!__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