관리-도구
편집 파일: check.cpython-37.pyc
B ��ReI � @ s� d Z ddlZddlZddlZddlmZmZ ddlm Z m Z ddlZddl mZ ddlZddlZddlmZ ddlZddlmZ 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)�TomlDecodeError�load)�CalledProcessError)�mkdtemp� )�enable_colourful_output)�BuildEnvironment)�Pep517HookCallerc C s� t � ���}y|�|� t�d� W n tk r@ t�d� dS X y| �i �}t�d|� W n" tk r~ tjddd� dS X y|�|� t�d� W n tk r� t�d � dS X t� }t�d |� z�y| � |i �}t�d|� W n$ tk �r tjddd� dS X |� d ��s*t�d|� dS t||�}t|��rLt�d|� nt�d|� dS t �|��rtt�d� nt�d� dS W d t�|� X dS Q R X d S )Nz#Installed static build dependenciesz+Failed to install static build dependenciesFzGot build requires: %sz'Failure in get_requires_for_build_sdistT)�exc_infoz$Installed dynamic build dependenciesz,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 extensionzOutput file %s existszOutput 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�endswith�pjoinr �tarfile� is_tarfile�shutil�rmtree)�hooks�build_sys_requires�env�reqs�td�filename�path� r! ��/builddir/build/BUILDROOT/alt-python37-pip-20.2.4-6.el8.x86_64/opt/alt/python37/lib/python3.7/site-packages/pip/_vendor/pep517/check.py�check_build_sdist sV r# c C s� t � ���}y|�|� t�d� W n tk r@ t�d� dS X y| �i �}t�d|� W n" tk r~ tjddd� dS X y|�|� t�d� W n tk r� t�d � dS X t� }t�d |� z�y| � |i �}t�d|� W n$ tk �r tjddd� dS X |� d ��s*t�d|� dS t||�}t|��rLt�d|� nt�d|� dS t �|��rtt�d� nt�d� dS W d t�|� X dS Q R X d S )Nz#Installed static build dependenciesz+Failed to install static build dependenciesFzGot build requires: %sz'Failure in get_requires_for_build_sdistT)r z$Installed dynamic build dependenciesz,Failed to install dynamic build dependencieszTrying to build wheel in %szbuild_wheel returned %rzFailure in build_wheelz.whlz'Filename %s doesn't have .whl extensionzOutput file %s existszOutput file %s does not existzOutput 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 �zipfile� is_zipfiler r )r r r r r r r r! r! r"