o
    h8                     @  sL   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ZdS )    )annotationsN)BuildBackendHookCaller)runner_with_spinner_messagenamestrbackendr   metadata_directorytempdreturn
str | Nonec                 C  s   |dusJ z,t d| td|  d}|| |j||d}W d   n1 s,w   Y  W n tyB   t d|  Y dS w tj	||S )zBuild 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   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   W/var/www/html/venv/lib/python3.10/site-packages/pip/_internal/operations/build/wheel.pybuild_wheel_pep517   s$   

r   )
r   r   r   r   r   r   r	   r   r
   r   )
__future__r   loggingr   pip._vendor.pyproject_hooksr   pip._internal.utils.subprocessr   	getLogger__name__r   r   r   r   r   r   <module>   s    
