관리-도구
편집 파일: wheel_legacy.cpython-312.pyc
� G��e� � �� � 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�Zy)� 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 }|S t j � t j kD r|dz }|S |j 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/BUILDROOT/alt-python312-pip-23.3.1-1.el8.x86_64/opt/alt/python312/lib/python3.12/site-packages/pip/_internal/operations/build/wheel_legacy.py�format_command_resultr s� � � '�|�4�L� ���b�1�D���&�&�� �K� � !� !� #�g�m�m� 3��9�9�� �K� �&�&�t�,��d�"�N��#�N�#3�4�4���K� �names�temp_dir�namec �V � t | � } | s6dj |� }|t ||� z }t j |� yt | � dkD r6dj || � }|t ||� z }t j |� t j 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�E��C�K�K�D�Q���$�\�>�B�B�����s��� �5�z�A�~� /� �&��u� � � �$�\�>�B�B�����s�� �7�7�<�<��%��(�+�+r � setup_py_path� source_dir�global_options� build_options�tempdc � � t ||||�� }d| � d�}t |� 5 }t j d|� t |d||�� } t j |� } t | || || � � }|cd d d � S # t $ r2 |j d� t j d| � Y d d d � y w xY w# 1 sw Y y xY w)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&