U
    
HaÀ  ã                   @   sj  U d Z ddlZddlmZmZ ddlmZmZ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-d.d/ƒfd0ed1d2d3ƒfd4ed5d6d7ƒfd8ed9d:d;ƒfd<ed=d>d?ƒfd@edAdBdCƒfdDedEdFdGƒfgƒZeeef edH< eee
dIœdJdK„Zeee dLœdMdN„ZdS )Oz%
Package containing all pip commands
é    N)ÚOrderedDictÚ
namedtuple)ÚAnyÚDictÚOptional)Ú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.Úcachezpip._internal.commands.cacheZCacheCommandz%Inspect and manage pip's wheel cache.Úindexzpip._internal.commands.indexZIndexCommandz3Inspect information available from package indexes.Ú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.Úcommands_dict)ÚnameÚkwargsÚreturnc                 K   s:   t |  \}}}t |¡}t||ƒ}|f | |dœ|—Ž}|S )zF
    Create an instance of the Command class with the given name.
    )r(   Úsummary)r'   Ú	importlibÚimport_moduleÚgetattr)r(   r)   Úmodule_pathÚ
class_namer+   ÚmoduleÚcommand_classÚcommand© r4   úC/tmp/pip-unpacked-wheel-tx790h60/pip/_internal/commands/__init__.pyÚcreate_commandY   s
    

r6   )r(   r*   c                 C   s6   ddl m} |  ¡ } || t ¡ ƒ}|r.|d S dS dS )zCommand name auto-correct.r   )Úget_close_matchesN)Údifflibr7   Úlowerr'   Úkeys)r(   r7   Úclose_commandsr4   r4   r5   Úget_similar_commandse   s    r<   )Ú__doc__r,   Úcollectionsr   r   Útypingr   r   r   Úpip._internal.cli.base_commandr   r   r'   ÚstrÚ__annotations__r6   r<   r4   r4   r4   r5   Ú<module>   s²   

 þ þ þ þ þ þ þ þ þ þ þ þ þ þ þ þÃD