U
��.e� � @ s: d Z ddlmZ ddlZddlmZmZ ddlmZ erPddl m
Z
ddlmZ edd �Z
ed
e
ddd
�fde
ddd�fde
ddd�fde
ddd�fde
ddd�fde
dd d!�fd"e
d#d$d%�fd&e
d'd(d)�fd*e
d+d,d-�fd.e
d/d0d1�fd2e
d3d4d5�fd6e
d7d8d9�fd:e
d;de
d?d@dA�fg�ZdBdC� ZdDdE� ZdS )Fz%
Package containing all pip commands
� )�absolute_importN)�OrderedDict�
namedtuple)�MYPY_CHECK_RUNNING)�Any)�Command�CommandInfoz module_path, class_name, summaryZinstallzpip._internal.commands.installZInstallCommandzInstall packages.Zdownloadzpip._internal.commands.downloadZDownloadCommandzDownload packages.Z uninstallz pip._internal.commands.uninstallZUninstallCommandzUninstall packages.Zfreezezpip._internal.commands.freezeZ
FreezeCommandz1Output installed packages in requirements format.�listzpip._internal.commands.listZListCommandzList installed packages.Zshowzpip._internal.commands.showZShowCommandz*Show information about installed packages.Zcheckzpip._internal.commands.checkZCheckCommandz7Verify installed packages have compatible dependencies.Zconfigz$pip._internal.commands.configurationZConfigurationCommandz&Manage local and global configuration.�searchzpip._internal.commands.searchZ
SearchCommandzSearch PyPI for packages.Zwheelzpip._internal.commands.wheelZWheelCommandz$Build wheels from your requirements.�hashzpip._internal.commands.hashZHashCommandz#Compute hashes of package archives.Z
completionz!pip._internal.commands.completionZCompletionCommandz-A helper command used for command completion.�debugzpip._internal.commands.debugZDebugCommandz&Show information useful for debugging.�helpzpip._internal.commands.helpZHelpCommandzShow 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 �kwargsZmodule_path�
class_namer �moduleZ
command_classZcommand� r �C/usr/lib/python3.8/site-packages/pip/_internal/commands/__init__.py�create_commandZ s
r c C s6 ddl m} | �� } || t�� �}|r.|d S dS dS )zCommand name auto-correct.r )�get_close_matchesFN)Zdifflibr �lowerr �keys)r r Zclose_commandsr r r �get_similar_commandsg s r )�__doc__Z
__future__r r �collectionsr r Zpip._internal.utils.typingr �typingr Zpip._internal.cli.base_commandr r r r r r r r r � s�
� � � � � � � � � � � � � ��<