
    жvg                         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dedededed	ee         f
d
ZdS )    N)Optional)BuildBackendHookCallerHookMissing)runner_with_spinner_messagenamebackendmetadata_directorytempdreturnc                    |J 	 t                               d|           t          d|  d          }|                    |          5  	 |                    ||          }n?# t
          $ r2}t                               d| |           Y d}~ddd           dS d}~ww xY w	 ddd           n# 1 swxY w Y   n,# t          $ r t                               d|            Y dS w xY wt          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)loggerdebugr   subprocess_runnerbuild_editabler   error	Exceptionospathjoin)r   r   r	   r
   runner
wheel_namees          j/var/www/pixelcanvas.ch/venv/lib/python3.11/site-packages/pip/_internal/operations/build/wheel_editable.pybuild_wheel_editabler      s    )))0%888,<T<<<
 
 &&v.. 	 	$33'9 4  

    8	   ttt	 	 	 	 	 	 	 		 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	    6===tt 7<<z***sf   AB; 	B/A#"B/#
B-B	B/B; BB/#B; /B33B; 6B37B; ;%C$#C$)loggingr   typingr   pip._vendor.pyproject_hooksr   r   pip._internal.utils.subprocessr   	getLogger__name__r   strr        r   <module>r$      s     				       K K K K K K K K F F F F F F		8	$	$"+
"+#"+ "+ 	"+
 c]"+ "+ "+ "+ "+ "+r#   