\h ddlZddlZddlmZmZddlmZddlm Z ddl m Z m Z ejeZdeededefd Zd eed ed edeededeef d Zd edededeedeededeefdZy)N)ListOptional) open_spinner) make_setuptools_bdist_wheel_args)call_subprocessformat_command_args command_argscommand_outputreturnct|}d|d}|s|dz }|StjtjkDr|dz }|S|j ds|dz }|d|z }|S)z'Format command information for logging.zCommand arguments:  zCommand output: Nonez'Command output: [use --verbose to show]zCommand output: )rloggergetEffectiveLevelloggingDEBUGendswith)r r command_desctexts n/root/niggaflix-v3/playground/venv/lib/python3.12/site-packages/pip/_internal/operations/build/wheel_legacy.pyformat_command_resultr s '|4L b 1D  && K  ! ! #gmm 3 99 K &&t, d "N #N#344 Knamestemp_dirnamecVt|}|s6dj|}|t||z }tj |yt |dkDr6dj||}|t||z }tj |t jj||dS)z>Return the path to the wheel in the temporary build directory.z1Legacy build of wheel for {!r} created no files. NzZLegacy build of wheel for {!r} created more than one file. Filenames (choosing first): {} r) sortedformatrrwarninglenospathjoin)rrrr r msgs rget_legacy_build_wheel_pathr% s 5ME CKKDQ $\>BBs 5zA~ / &u   $\>BBs 77<<%( ++r setup_py_path source_dirglobal_options build_optionstempdct||||}d|d}t|5}tjd| t |d||} tj|} t| |||| } | cd d d S#t $r2|j dtjd|Yd d d y wxYw#1swYy xYw) zBuild one unpacked package using the "legacy" build process. Returns path to wheel if successfully built. Otherwise, returns None. )r(r)destination_dirzBuilding wheel for z (setup.py)zDestination directory: %szpython setup.py bdist_wheel)rcwdspinnererrorzFailed building wheel for %sN)rrrr r ) rrrdebugr Exceptionfinishr/r!listdirr%) rr&r'r(r)r* wheel_args spin_messager.outputr wheel_paths rbuild_wheel_legacyr8;s2%# J)k:L l #w 0%8 $: F 5!0#!  /  NN7 # LL7 > s.B6A8&B680B3(B62B33B66B?)ros.pathr!typingrrpip._internal.cli.spinnersr$pip._internal.utils.setuptools_buildrpip._internal.utils.subprocessrr getLogger__name__rstrrr%r8rrrBs!3QO   8 $s) (, 9,, ,s) ,  , c] ,6+ +++I + 9 +  +c]+r