o
    ~îj   ã                   @   sL   d Z ddlmZ ddlmZ ddlmZ G dd„ deƒZG dd„ deƒZd	S )
z&pyproject.toml related pip exceptions.é    )Úescape)ÚText)ÚDiagnosticPipErrorc                       s.   e Zd ZdZdZdeddf‡ fdd„Z‡  ZS )ÚMissingPyProjectBuildRequireszNRaised when pyproject.toml has `build-system`, but no `build-system.requires`.z'missing-pyproject-build-system-requiresÚpackageÚreturnNc                   s*   t ƒ jdt|ƒ› �tdƒdtdƒd� d S )NúCan not process zrThis package has an invalid pyproject.toml file.
The [build-system] table is missing the mandatory `requires` key.ú;This is an issue with the package mentioned above, not pip.ú+See PEP 518 for the detailed specification.©ÚmessageÚcontextÚ	note_stmtÚ	hint_stmt©ÚsuperÚ__init__r   r   )Úselfr   ©Ú	__class__© úl/raid/bulk_storage/M2HATS/real-image-venv/lib/python3.10/site-packages/pip/_internal/exceptions/pyproject.pyr      s   ÿ
ùz&MissingPyProjectBuildRequires.__init__©Ú__name__Ú
__module__Ú__qualname__Ú__doc__Ú	referenceÚstrr   Ú__classcell__r   r   r   r   r   	   s    r   c                       s2   e Zd ZdZdZdededdf‡ fdd„Z‡  ZS )	ÚInvalidPyProjectBuildRequiresz>Raised when pyproject.toml an invalid `build-system.requires`.z'invalid-pyproject-build-system-requiresr   Úreasonr   Nc                   s0   t ƒ jdt|ƒ› �td|› �ƒdtdƒd� d S )Nr   zKThis package has an invalid `build-system.requires` key in pyproject.toml.
r	   r
   r   r   )r   r   r!   r   r   r   r      s   ÿÿ
ùz&InvalidPyProjectBuildRequires.__init__r   r   r   r   r   r       s    "r    N)	r   Úpip._vendor.rich.markupr   Úpip._vendor.rich.textr   Úpip._internal.exceptions._baser   r   r    r   r   r   r   Ú<module>   s    