Edit File: wheel_legacy.cpython-311.pyc
� Q�d� � � � d dl Z d dlZd dlmZmZ d dlmZ d dlm Z d dl mZmZ e j e� � Zdee dedefd �Zd ee dededee dedee fd �Zdedededee dee dedee fd�ZdS )� N)�List�Optional)�open_spinner)� make_setuptools_bdist_wheel_args)�call_subprocess�format_command_args�command_args�command_output�returnc �� � t | � � }d|� d�}|s|dz }nOt � � � t j k r|dz }n"|� d� � s|dz }|d|� �z }|S )z'Format command information for logging.zCommand arguments: � zCommand output: Nonez'Command output: [use --verbose to show]zCommand output: )r �logger�getEffectiveLevel�logging�DEBUG�endswith)r r �command_desc�texts �|/builddir/build/BUILD/cloudlinux-venv-1.0.2/venv/lib/python3.11/site-packages/pip/_internal/operations/build/wheel_legacy.py�format_command_resultr s� � � '�|�4�4�L�1��1�1�1�D�� 5��&�&��� � !� !� #� #�g�m� 3� 3��9�9����&�&�t�,�,� #��d�"�N��4�N�4�4�4���K� �names�temp_dir�namec � � t | � � } | sDd� |� � }|t ||� � z }t � |� � dS t | � � dk rCd� || � � }|t ||� � z }t � |� � t j � || d � � S )z>Return the path to the wheel in the temporary build directory.z1Legacy build of wheel for {!r} created no files. N� zZLegacy build of wheel for {!r} created more than one file. Filenames (choosing first): {} r ) �sorted�formatr r �warning�len�os�path�join)r r r r r �msgs r �get_legacy_build_wheel_pathr% s� � � �5�M�M�E�� �C�K�K�D�Q�Q���$�\�>�B�B�B�����s�����t� �5�z�z�A�~�~� /� �&��u� � � � �$�\�>�B�B�B�����s���� �7�<�<��%��(�+�+�+r � setup_py_path� source_dir�global_options� build_options�tempdc �� � t ||||�� � }d| � d�}t |� � 5 }t � d|� � t |d||�� � } nL# t $ r? |� d� � t � d| � � Y d d d � � d S w xY wt j |� � } t | || || � � � }|cd d d � � S # 1 swxY w Y d S )z�Build 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)r �cwd�spinner�errorzFailed building wheel for %sN)r r r r r )r r r �debugr � Exception�finishr/ r! �listdirr% )r r&