관리-도구
편집 파일: check.cpython-39.opt-1.pyc
a [��f� � @ s� d Z ddlZddlZddlZddlZddlmZmZ ddl Z ddl mZ ddlZddl Z ddlmZ ddlZddlmZ ddlmZmZ dd lmZ dd lmZ e�e�Zdd� Zd d� Zdd� Zddd�Z ddddd�Z!dd� Z"edkr�e � 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 C sH t � ��*}z|�|� t�d� W n* tyL t�d� Y W d � dS 0 z| �i �}t�d|� W n. ty� tjddd� Y W d � dS 0 z|�|� t�d� W n* ty� t�d � Y W d � dS 0 t� }t�d |� �z$z| � |i �}t�d|� W n< t�yJ tjddd� Y W t �|� W d � dS 0 |�d ��s�t�d|� W t �|� W d � dS t ||�}t|��r�t�d|� n(t�d|� W t �|� W d � dS t�|��r�t�d� n&t�d� W t �|� W d � dS W t �|� nt �|� 0 W d � dS 1 �s:0 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 �errorZget_requires_for_build_sdist� Exceptionr Zbuild_sdist�shutil�rmtree�endswith�pjoinr �tarfileZ is_tarfile��hooksZbuild_sys_requires�envZreqsZtd�filename�path� r% �</usr/lib/python3.9/site-packages/pip/_vendor/pep517/check.py�check_build_sdist sh �� � � �r'