관리-도구
편집 파일: wheel_legacy.cpython-311.pyc
� �܋f� � � � 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 �b/opt/cloudlinux/venv/lib64/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 �l � t | � � } | s5d|�d�}|t ||� � z }t � |� � dS t | � � dk r6d|�d| � d�}|t ||� � z }t � |� � t j � || d � � S )z>Return the path to the wheel in the temporary build directory.zLegacy 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)r r r r r �msgs r �get_legacy_build_wheel_pathr$ s� � � �5�M�M�E�� �G�4�G�G�G���$�\�>�B�B�B�����s�����t� �5�z�z�A�~�~� 5�� 5� 5�+0� 5� 5� 5� � �$�\�>�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'