a
    <Bìjp  ã                   @  sX   d dl mZ d dlZd dlZd dlmZ d dlmZ e e	¡Z
ddddddœd	d
„ZdS )é    )ÚannotationsN)ÚBuildBackendHookCaller)Úrunner_with_spinner_messageÚstrr   z
str | None)ÚnameÚbackendÚmetadata_directoryÚwheel_directoryÚreturnc                 C  s”   |dusJ ‚zXt  d|¡ td| › d�ƒ}| |¡� |j||d�}W d  ƒ n1 sX0    Y  W n  ty„   t  d| ¡ Y dS 0 tj 	||¡S )z�Build one InstallRequirement using the PEP 517 build process.

    Returns path to wheel if successfully built. Otherwise, returns None.
    NzDestination directory: %szBuilding wheel for z (pyproject.toml))r	   r   zFailed building wheel for %s)
ÚloggerÚdebugr   Úsubprocess_runnerÚbuild_wheelÚ	ExceptionÚerrorÚosÚpathÚjoin)r   r   r   r	   ÚrunnerÚ
wheel_name© r   úc/mnt/bigstor/www/usecases/.venv/lib/python3.9/site-packages/pip/_internal/operations/build/wheel.pyÚbuild_wheel_pep517   s    

ÿþ(r   )Ú
__future__r   Úloggingr   Zpip._vendor.pyproject_hooksr   Úpip._internal.utils.subprocessr   Ú	getLoggerÚ__name__r   r   r   r   r   r   Ú<module>   s   
