관리-도구
편집 파일: wheel_editable.cpython-38.pyc
U ʗRe} � @ 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� |dk st �z�t�d|� td| � d��}|�|��\ z|j||d�}W nB tk r� } z$t�d| |� W Y �W 5 Q R � W dS d}~X Y nX W 5 Q R X W n" tk r� t�d| � Y dS X t j �||�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)�AssertionError�logger�debugr �subprocess_runner�build_editabler �error� Exception�os�path�join)r r r r �runner� wheel_name�e� r ��/builddir/build/BUILDROOT/alt-python38-pip-22.2.1-2.el8.x86_64/opt/alt/python38/lib/python3.8/site-packages/pip/_internal/operations/build/wheel_editable.py�build_wheel_editable s. �� �2r )�loggingr �typingr Zpip._vendor.pep517.wrappersr r �pip._internal.utils.subprocessr � getLogger�__name__r �strr r r r r �<module> s �