
    Uh3                     ~    d dl Z d dlZd dlmZ d dl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y)    N)Optional)BuildBackendHookCaller)runner_with_spinner_messagenamebackendmetadata_directorytempdreturnc                 R   |J 	 t         j                  d|       t        d|  d      }|j                  |      5  |j	                  ||      }ddd       t        j                  j                  |      S # 1 sw Y   )xY w# t
        $ r t         j                  d|        Y yw xY w)zBuild one InstallRequirement using the PEP 517 build process.

    Returns path to wheel if successfully built. Otherwise, returns None.
    NzDestination directory: %szBuilding wheel for z (pyproject.toml))r   zFailed building wheel for %s)
loggerdebugr   subprocess_runnerbuild_wheel	Exceptionerrorospathjoin)r   r   r   r	   runner
wheel_names         ^/var/www/html/IOPaint/env/lib/python3.12/site-packages/pip/_internal/operations/build/wheel.pybuild_wheel_pep517r      s     )))0%8,!$'89
 &&v. 	 ,,#5 - J	 77<<z**	 	
  3T:s(   6B A8B 8B=B B&%B&)loggingr   typingr   pip._vendor.pyproject_hooksr   pip._internal.utils.subprocessr   	getLogger__name__r   strr        r   <module>r"      s]     	  > F			8	$+
+#+ + 	+
 c]+r!   