관리-도구
편집 파일: check.cpython-311.pyc
� �Re� � � � d Z ddlZddlZddlZddlZddlmZmZ ddl Z ddl mZ ddlZddl Z ddlmZ ddlZddlmZ ddlmZmZ dd lmZ dd lmZ ej e� � Zd� Zd� Zd � Zdd�Z ddddd�Z!d� Z"edk r e � � dS dS )zHCheck a project and backend by attempting to build using PEP 517 hooks. � N)�isfile�join)�CalledProcessError)�mkdtemp� )�enable_colourful_output)�TOMLDecodeError� toml_load)�BuildEnvironment)�Pep517HookCallerc �� � t � � 5 } |� |� � t � d� � n6# t $ r) t � d� � Y d d d � � dS w xY w | � i � � }t � d|� � n8# t $ r+ t � dd�� � Y d d d � � dS w xY w |� |� � t � d� � n6# t $ r) t � d � � Y d d d � � dS w xY wt � � }t � d |� � | � |i � � }t � d|� � nL# t $ r? t � dd�� � Y t j |� � d d d � � dS w xY w|� d � � s=t � d|� � t j |� � d d d � � dS t ||� � }t |� � rt � d|� � n=t � d|� � t j |� � d d d � � dS t j |� � rt � d� � n<t � d� � t j |� � d d d � � dS t j |� � n# t j |� � w xY w d d d � � dS # 1 swxY w Y d S )N�#Installed static build dependencies�+Failed to install static build dependenciesF�Got build requires: %s�'Failure in get_requires_for_build_sdistT��exc_info�$Installed dynamic build dependencies�,Failed to install dynamic build dependencieszTrying to build sdist in %szbuild_sdist returned %rzFailure in build_sdistz.tar.gzz*Filename %s doesn't have .tar.gz extension�Output file %s exists�Output file %s does not existzOutput file is a tar filezOutput file is not a tar file)r �pip_install�log�infor �error�get_requires_for_build_sdist� Exceptionr �build_sdist�shutil�rmtree�endswith�pjoinr �tarfile� is_tarfile��hooks�build_sys_requires�env�reqs�td�filename�paths ��/builddir/build/BUILDROOT/alt-python311-pip-21.3.1-3.el8.x86_64/opt/alt/python311/lib/python3.11/site-packages/pip/_vendor/pep517/check.py�check_build_sdistr. s� � � � � � 5�s� ��O�O�.�/�/�/��H�H�:�;�;�;�;��!� � � ��I�I�C�D�D�D�� 5� 5� 5� 5� 5� 5� 5� 5� ���� ��5�5�b�9�9�D��H�H�-�t�4�4�4�4��� � � ��I�I�?�$�I�O�O�O��5� 5� 5� 5� 5� 5� 5� 5� ���� ��O�O�D�!�!�!��H�H�;�<�<�<�<��!� � � ��I�I�D�E�E�E��)5� 5� 5� 5� 5� 5� 5� 5�$ ���� �Y�Y�����.��3�3�3� � � �,�,�R��4�4�����2�H�=�=�=�=��� � � ����1�D��A�A�A��* �M�"����g5� 5� 5� 5� 5� 5� 5� 5�8 ���� �$�$�Y�/�/� �� � �@�(�L� L� L�� �M�"����g5� 5� 5� 5� 5� 5� 5� 5�J ��X�&�&�D��d�|�|� ����0�$�7�7�7�7�� � �9�4�@�@�@�� �M�"����g5� 5� 5� 5� 5� 5� 5� 5�X �!�$�'�'� ����4�5�5�5�5�� � �9�:�:�:�� �M�"����g5� 5� 5� 5� 5� 5� 5� 5�Z 6� �M�"������F�M�"���������k5� 5� 5� 5� 5� 5� 5� 5� 5� 5� 5� 5���� 5� 5� 5� 5� 5� 5�� �M#�/A� M#�$A4�%M#�3A4�4M#�80B)�(M#�)&C�M#�C�M#�"/D�M#�$E�6M#�E�,M#�31F%�$L<�%&G.�L<�M#�-G.�.3L<�"M#�AL<�M#�;A L<�M#�'M#�<M�M#�#M'�*M'c �� � t � � 5 } |� |� � t � d� � n6# t $ r) t � d� � Y d d d � � dS w xY w | � i � � }t � d|� � n8# t $ r+ t � dd�� � Y d d d � � dS w xY w |� |� � t � d� � n6# t $ r) t � d � � Y d d d � � dS w xY wt � � }t � d |� � | � |i � � }t � d|� � nL# t $ r? t � dd�� � Y t j |� � d d d � � dS w xY w|� d � � s=t � d|� � t j |� � d d d � � dS t ||� � }t |� � rt � d|� � n=t � d|� � t j |� � d d d � � dS t j |� � rt � d� � n<t � d� � t j |� � d d d � � dS t j |� � n# t j |� � w xY w d d d � � dS # 1 swxY w Y d S )Nr r Fr r Tr r r zTrying to build wheel in %szbuild_wheel returned %rzFailure in build_wheelz.whlz'Filename %s doesn't have .whl extensionr r zOutput file is a zip filezOutput file is not a zip file)r r r r r r �get_requires_for_build_wheelr r �build_wheelr r r! r"