B
    =)H[ù  ã               @   s"  d Z ddlmZ ddlmZ ddlmZ ddlmZ ddl	m
Z
 ddlmZ ddlmZ dd	lmZ dd
lmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ erØddlm Z m!Z! ddl"m#Z# eeee
eeeeeeeeegZ$dd„ e$D ƒZ%ddd„Z&dd„ Z'dd„ Z(dS )z%
Package containing all pip commands
é    )Úabsolute_import)ÚCompletionCommand)ÚConfigurationCommand)ÚDownloadCommand)ÚFreezeCommand)ÚHashCommand)ÚHelpCommand)ÚListCommand)ÚCheckCommand)ÚSearchCommand)ÚShowCommand)ÚInstallCommand)ÚUninstallCommand)ÚWheelCommand)ÚMYPY_CHECK_RUNNING)ÚListÚType)ÚCommandc             C   s   i | ]}||j “qS © )Úname)Ú.0Úcr   r   ú`C:\Users\HIRONO~1\AppData\Local\Temp\pip-install-qz7kpjmn\pip\pip\_internal\commands\__init__.pyú
<dictcomp>*   s    r   Tc             c   s:   | rt ttƒ}nt ¡ }x|D ]\}}||jfV  qW dS )z5Yields sorted (command name, command summary) tuples.N)Ú_sort_commandsÚcommands_dictÚcommands_orderÚitemsÚsummary)ÚorderedÚcmditemsr   Úcommand_classr   r   r   Úget_summaries-   s
    r"   c             C   s6   ddl m} |  ¡ } || t ¡ ƒ}|r.|d S dS dS )zCommand name auto-correct.r   )Úget_close_matchesFN)Údifflibr#   Úlowerr   Úkeys)r   r#   Úclose_commandsr   r   r   Úget_similar_commands9   s    r(   c                s   ‡ fdd„}t |  ¡ |d�S )Nc                s(   yˆ   | d ¡S  tk
r"   dS X d S )Né   éÿ   )ÚindexÚ
ValueError)Úkey)Úorderr   r   ÚkeyfnH   s    z_sort_commands.<locals>.keyfn)r-   )Úsortedr   )Úcmddictr.   r/   r   )r.   r   r   G   s    r   N)T))Ú__doc__Ú
__future__r   Ú!pip._internal.commands.completionr   Ú$pip._internal.commands.configurationr   Úpip._internal.commands.downloadr   Úpip._internal.commands.freezer   Úpip._internal.commands.hashr   Úpip._internal.commands.helpr   Úpip._internal.commands.listr	   Úpip._internal.commands.checkr
   Úpip._internal.commands.searchr   Úpip._internal.commands.showr   Úpip._internal.commands.installr   Ú pip._internal.commands.uninstallr   Úpip._internal.commands.wheelr   Úpip._internal.utils.typingr   Útypingr   r   Úpip._internal.basecommandr   r   r   r"   r(   r   r   r   r   r   Ú<module>   sF   
