OwlCyberSecurity - MANAGER
Edit File: wheel_legacy.cpython-311.pyc
� p�Fh$ � �& � d dl Z d dlZd dlmZmZ d dlmZ d dlm Z d dl mZ d dlm Z mZ e j e� � Zdee ded efd �Zdee ded edee ded ee fd�Zd edededee dee ded ee fd�ZdS )� N)�List�Optional)�open_spinner)� deprecated)� 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/imunify360-venv-2.5.3/opt/imunify360/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 �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�d| ��dd�� � t ||||�� � }d| � d �}t |� � 5 }t � d |� � t |d||�� � } nL# t $ r? |� d � � t � d| � � Y ddd� � dS w xY wt j |� � } t | || || �� � }|cddd� � S # 1 swxY w Y dS )z�Build one unpacked package using the "legacy" build process. Returns path to wheel if successfully built. Otherwise, returns None. z Building z\ using the legacy setup.py bdist_wheel mechanism, which will be removed in a future version.z�to use the standardized build interface by setting the `--use-pep517` option, (possibly combined with `--no-build-isolation`), or adding a `pyproject.toml` file to the source tree of z25.3i� )�reason�replacement�gone_in�issue)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 r �debugr � Exception�finishr3 r! �listdirr% )r r&