
    <h                         d dl mZ d dlZd dlZd dlmZ d dlmZ d dl	m
Z
 d dlmZmZ  ej                  e      Z	 	 	 	 	 	 d
dZ	 	 	 	 	 	 	 	 	 	 	 	 ddZ	 	 	 	 	 	 	 	 	 	 	 	 	 	 dd	Zy)    )annotationsN)open_spinner)
deprecated) make_setuptools_bdist_wheel_args)call_subprocessformat_command_argsc                    t        |       }d| d}|s|dz  }|S t        j                         t        j                  kD  r|dz  }|S |j                  d      s|dz  }|d| z  }|S )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)command_argscommand_outputcommand_desctexts       pC:\Suresh\moveshuttle\MDcreated\moveengine\venv\Lib\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    c                .   t        |       } | s+d|d}|t        ||      z  }t        j                  |       yt	        |       dkD  r-d|d|  d}|t        ||      z  }t        j                  |       t
        j                  j                  || d         S )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)namestemp_dirnamer   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   c                   t        d| dd| dd       t        ||||      }d|  d	}t        |      5 }t        j	                  d
|       	 t        |d||      }	t        j                  |      }
t        |
|| ||	      }|cddd       S # t        $ r2 |j                  d       t        j                  d|        Y ddd       yw xY w# 1 sw Y   yxY w)zBuild one unpacked package using the "legacy" build process.

    Returns path to wheel if successfully built. Otherwise, returns None.
    z	Building z\ using the legacy setup.py bdist_wheel mechanism, which will be removed in a future version.zto use the standardized build interface by setting the `--use-pep517` option, (possibly combined with `--no-build-isolation`), or adding a `pyproject.toml` file to the source tree of z25.3i  )reasonreplacementgone_inissue)global_optionsbuild_options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   r   debugr   	Exceptionfinishr.   r   listdirr#   )r!   setup_py_path
source_dirr)   r*   tempd
wheel_argsspin_messager-   outputr   
wheel_paths               r   build_wheel_legacyr:   =   s    x  9 9G HLhP
  2%#	J )k:L	l	#w0%8
	$:	F 

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

 /   	NN7#LL7> 	 
$	#s/   CB&C0C	>CC		CC)r   	list[str]r   strreturnr<   )r   r;   r    r<   r!   r<   r   r;   r   r<   r=   
str | None)r!   r<   r3   r<   r4   r<   r)   r;   r*   r;   r5   r<   r=   r>   )
__future__r   r   os.pathr   pip._internal.cli.spinnersr   pip._internal.utils.deprecationr   $pip._internal.utils.setuptools_buildr   pip._internal.utils.subprocessr   r   	getLogger__name__r   r   r#   r:    r   r   <module>rH      s    "   3 6 Q O			8	$ 	(,,, , 	,
 , ,6:
:: : 	:
 : : :r   