Current File : //lib/python3.9/site-packages/pip/_internal/operations/build/__pycache__/wheel.cpython-39.pyc |
a
[��f' � @ s\ d dl Z d dlZd dlmZ d dlmZ d dlmZ e �e �Z
eeeeee d�dd�ZdS )� N)�Optional)�Pep517HookCaller)�runner_with_spinner_message)�name�backend�metadata_directory�tempd�returnc C s� |dusJ �zXt �d|� td| � d��}|�|�� |j||d�}W d � n1 sX0 Y W n ty� t �d| � Y dS 0 tj� ||�S )z�Build one InstallRequirement using the PEP 517 build process.
Returns path to wheel if successfully built. Otherwise, returns None.
NzDestination directory: %szBuilding wheel for z (pyproject.toml))r zFailed building wheel for %s)
�logger�debugr Zsubprocess_runnerZbuild_wheel� Exception�error�os�path�join)r r r r ZrunnerZ
wheel_name� r �H/usr/lib/python3.9/site-packages/pip/_internal/operations/build/wheel.py�build_wheel_pep517 s
��(r )
Zloggingr �typingr Zpip._vendor.pep517.wrappersr Zpip._internal.utils.subprocessr Z getLogger�__name__r
�strr r r r r �<module> s
�