
    Ki                    f    d dl mZ d dlZd dlZd dlmZmZ d dlmZ  ej	        e
          ZddZdS )    )annotationsN)BuildBackendHookCallerHookMissing)runner_with_spinner_messagenamestrbackendr   metadata_directorywheel_directoryreturn
str | Nonec                   |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   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          e/srv/django_bis/venv311/lib/python3.11/site-packages/pip/_internal/operations/build/wheel_editable.pybuild_wheel_editabler      s    )))0/BBB,<T<<<
 
 &&v.. 	 	$33$3'9 4  

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