3
g}                 @   s`   d dl Z d dlZd dlmZ d dlmZmZ d dlmZ e j	e
Zeeeeee dddZdS )    N)Optional)HookMissingPep517HookCaller)runner_with_spinner_message)namebackendmetadata_directorytempdreturnc             C   s   |dk	st yxtjd| td|  d}|j|H y|j||d}W n. tk
rv } ztjd| | dS d}~X nX W dQ R X W n  tk
r   tjd|  dS X t	j
j||S )zBuild one InstallRequirement using the PEP 660 build process.

    Returns path to wheel if successfully built. Otherwise, returns None.
    NzDestination directory: %szBuilding editable for z (pyproject.toml))r   zLCannot build editable %s because the build backend does not have the %s hookzFailed 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   k/var/www/tester-filtro-web/env/lib/python3.6/site-packages/pip/_internal/operations/build/wheel_editable.pybuild_wheel_editable   s(    
r   )loggingr   typingr   Zpip._vendor.pep517.wrappersr   r   pip._internal.utils.subprocessr   	getLogger__name__r   strr   r   r   r   r   <module>   s   
