관리-도구
편집 파일: wheel_legacy.cpython-311.pyc
� �Re� � � � d dl Z d dlZd dlmZmZ d dlmZ d dlm Z d dl mZmZm Z 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)�LOG_DIVIDER�call_subprocess�format_command_args�command_args�command_output�returnc �� � t | � � }d|� d�}|s|dz }nVt � � � t j k r|dz }n)|� d� � s|dz }|d|� t � �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�endswithr )r r �command_desc�texts ��/builddir/build/BUILDROOT/alt-python311-pip-21.3.1-3.el8.x86_64/opt/alt/python311/lib/python3.11/site-packages/pip/_internal/operations/build/wheel_legacy.py�format_command_resultr s� � � '�|�4�4�L�1��1�1�1�D�� B��&�&��� � !� !� #� #�g�m� 3� 3��9�9����&�&�t�,�,� #��d�"�N��A�N�A�K�A�A�A���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&