
    g                         S SK r S SKrS SKJrJr  S SKJr  S SKJ	r	  S SK
JrJr  \ R                  " \5      rS\\   S\S\4S	 jrS
\\   S\S\S\\   S\S\\   4S jrS\S\S\S\\   S\\   S\S\\   4S jrg)    N)ListOptional)open_spinner) make_setuptools_bdist_wheel_args)call_subprocessformat_command_argscommand_argscommand_outputreturnc                     [        U 5      nSU S3nU(       d  US-  nU$ [        R                  5       [        R                  :  a  US-  nU$ UR                  S5      (       d  US-  nUSU 3-  nU$ )z'Format command information for logging.zCommand arguments: 
zCommand output: Nonez'Command output: [use --verbose to show]zCommand output:
)r   loggergetEffectiveLevelloggingDEBUGendswith)r	   r
   command_desctexts       s/Users/Alptekin/Desktop/izin_takip/venv/lib/python3.13/site-packages/pip/_internal/operations/build/wheel_legacy.pyformat_command_resultr      s    
 '|4L b1D&& K 
	!	!	#gmm	399 K	 &&t,,d"N#N#344K    namestemp_dirnamec                 8   [        U 5      n U (       d+  SU< S3nU[        X45      -  n[        R                  U5        g[	        U 5      S:  a-  SU< SU  S3nU[        X45      -  n[        R                  U5        [
        R                  R                  XS   5      $ )z>Return the path to the wheel in the temporary build directory.zLegacy build of wheel for z created no files.
N   z9 created more than one file.
Filenames (choosing first): r   r   )sortedr   r   warninglenospathjoin)r   r   r   r	   r
   msgs         r   get_legacy_build_wheel_pathr$       s     5ME*4(2FG$\BBs
5zA~( 1++0'5 	 	$\BBs77<<(++r   setup_py_path
source_dirglobal_optionsbuild_optionstempdc           	         [        UUUUS9nSU  S3n[        U5       n[        R                  SU5         [	        USUUS9n	[        R                  " U5      n
[        U
UU UU	S
9nUsS	S	S	5        $ ! [
         a2    UR                  S5        [        R                  SU 5         S	S	S	5        g	f = f! , (       d  f       g	= f)zBuild one unpacked package using the "legacy" build process.

Returns path to wheel if successfully built. Otherwise, returns None.
)r'   r(   destination_dirzBuilding wheel for z (setup.py)zDestination directory: %szpython setup.py bdist_wheel)r   cwdspinnererrorzFailed building wheel for %sN)r   r   r   r	   r
   )r   r   r   debugr   	Exceptionfinishr.   r    listdirr$   )r   r%   r&   r'   r(   r)   
wheel_argsspin_messager-   outputr   
wheel_paths               r   build_wheel_legacyr7   ;   s     2%#	J )k:L	l	#w0%8
	$:	F 

5!0#!

 / 
$	#  	NN7#LL7> 
$	#	 
$	#s.   B/A0$B/01B,!B/+B,,B//
B=)r   os.pathr    typingr   r   pip._internal.cli.spinnersr   $pip._internal.utils.setuptools_buildr   pip._internal.utils.subprocessr   r   	getLogger__name__r   strr   r$   r7    r   r   <module>rA      s      ! 3 Q O			8	$s) 	(,9,, , s)	,
 , c],6+
++ + I	+
 9+ + c]+r   