U
    @v¨g‚  ã                   @   s:  d Z ddlmZ ddlZddlmZmZ ddlmZ erPddl	m
Z
 ddlmZ edd	ƒZed
edddƒfdedddƒfdedddƒfdedddƒfdedddƒfdedd d!ƒfd"ed#d$d%ƒfd&ed'd(d)ƒfd*ed+d,d-ƒfd.ed/d0d1ƒfd2ed3d4d5ƒfd6ed7d8d9ƒfd:ed;d<d=ƒfd>ed?d@dAƒfgƒZdBdC„ ZdDdE„ ZdS )Fz%
Package containing all pip commands
é    )Úabsolute_importN)ÚOrderedDictÚ
namedtuple)ÚMYPY_CHECK_RUNNING)ÚAny)ÚCommandÚCommandInfoz module_path, class_name, summaryÚinstallzpip._internal.commands.installÚInstallCommandzInstall packages.Údownloadzpip._internal.commands.downloadÚDownloadCommandzDownload packages.Ú	uninstallz pip._internal.commands.uninstallÚUninstallCommandzUninstall packages.Úfreezezpip._internal.commands.freezeÚFreezeCommandz1Output installed packages in requirements format.Úlistzpip._internal.commands.listÚListCommandzList installed packages.Úshowzpip._internal.commands.showÚShowCommandz*Show information about installed packages.Úcheckzpip._internal.commands.checkÚCheckCommandz7Verify installed packages have compatible dependencies.Úconfigz$pip._internal.commands.configurationÚConfigurationCommandz&Manage local and global configuration.Úsearchzpip._internal.commands.searchÚSearchCommandzSearch PyPI for packages.Úwheelzpip._internal.commands.wheelÚWheelCommandz$Build wheels from your requirements.Úhashzpip._internal.commands.hashÚHashCommandz#Compute hashes of package archives.Ú
completionz!pip._internal.commands.completionÚCompletionCommandz-A helper command used for command completion.Údebugzpip._internal.commands.debugÚDebugCommandz&Show information useful for debugging.Úhelpzpip._internal.commands.helpÚHelpCommandzShow help for commands.c                 K   s:   t |  \}}}t |¡}t||ƒ}|f | |dœ|—Ž}|S )zF
    Create an instance of the Command class with the given name.
    )ÚnameÚsummary)Úcommands_dictÚ	importlibÚimport_moduleÚgetattr)r%   ÚkwargsÚmodule_pathÚ
class_namer&   ÚmoduleÚcommand_classÚcommand© r1   úC/tmp/pip-unpacked-wheel-gw11q0wt/pip/_internal/commands/__init__.pyÚcreate_commandZ   s
    

r3   c                 C   s6   ddl m} |  ¡ } || t ¡ ƒ}|r.|d S dS dS )zCommand name auto-correct.r   )Úget_close_matchesFN)Údifflibr4   Úlowerr'   Úkeys)r%   r4   Úclose_commandsr1   r1   r2   Úget_similar_commandsg   s    r9   )Ú__doc__Ú
__future__r   r(   Úcollectionsr   r   Úpip._internal.utils.typingr   Útypingr   Úpip._internal.cli.base_commandr   r   r'   r3   r9   r1   r1   r1   r2   Ú<module>   s¤   

 þ þ þ þ þ þ þ þ þ þ þ þ þ þË<