File manager - Edit - /opt/saltstack/salt/lib/python3.10/site-packages/pip/_internal/operations/build/__pycache__/wheel_editable.cpython-310.pyc
Back
o ;j� � @ sP d dl mZ d dlZd dlZd dlmZmZ d dlmZ e� e �Zdd d�ZdS )� )�annotationsN)�BuildBackendHookCaller�HookMissing)�runner_with_spinner_message�name�str�backendr �metadata_directory�tempd�return� str | Nonec C s� |dusJ �zPt �d|� td| � d��}|�|��3 z |j||d�}W n! tyE } zt �d| |� W Y d}~W d � W dS d}~ww W d � n1 sPw Y W n tyf t �d| � Y dS w 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 �a/opt/saltstack/salt/lib/python3.10/site-packages/pip/_internal/operations/build/wheel_editable.py�build_wheel_editable s<