관리-도구
편집 파일: wheel_editable.cpython-39.pyc
a [��f} � @ s` d dl Z d dlZd dlmZ d dlmZmZ d dlmZ e � e �Zeeeeee d�dd�Z dS )� N)�Optional)�HookMissing�Pep517HookCaller)�runner_with_spinner_message)�name�backend�metadata_directory�tempd�returnc C s� |dusJ �z�t �d|� td| � d��}|�|��f z|j||d�}W nB ty� } z*t �d| |� W Y d}~W d � W dS d}~0 0 W d � n1 s�0 Y W n ty� t �d| � Y dS 0 tj � ||�S )z�Build one InstallRequirement using the PEP 660 build process. Returns path to wheel if successfully built. Otherwise, returns None. NzDestination directory: %szBuilding editable for z (pyproject.toml))r zLCannot build editable %s because the build backend does not have the %s hookzFailed building editable for %s)�logger�debugr Zsubprocess_runnerZbuild_editabler �error� Exception�os�path�join)r r r r ZrunnerZ wheel_name�e� r �Q/usr/lib/python3.9/site-packages/pip/_internal/operations/build/wheel_editable.py�build_wheel_editable s. �� �Hr )Zloggingr �typingr Zpip._vendor.pep517.wrappersr r Zpip._internal.utils.subprocessr Z getLogger�__name__r �strr r r r r �<module> s �