관리-도구
편집 파일: check.cpython-36.pyc
3 �ReI � @ s� d Z ddlZddlZddlZddlmZmZ ddlm Z m Z ddlZddl mZ ddlZddlZddlmZ ddlZddlmZ dd lmZ dd lmZ eje�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 0 C s� t � ���}y|j|� tjd� W n tk r@ tjd� dS X y| ji �}tjd|� W n" tk r~ tjddd� dS X y|j|� tjd� W n tk r� tjd � dS X t� }tjd |� z�y| j |i �}tjd|� W n$ tk �r tjddd� dS X |j d ��s*tjd|� dS t||�}t|��rLtjd|� ntjd|� dS t j|��rttjd� ntjd� dS W d tj|� 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-python36-pip-20.2.4-5.el8.x86_64/opt/alt/python36/lib/python3.6/site-packages/pip/_vendor/pep517/check.py�check_build_sdist sV r# c 0 C s� t � ���}y|j|� tjd� W n tk r@ tjd� dS X y| ji �}tjd|� W n" tk r~ tjddd� dS X y|j|� tjd� W n tk r� tjd � dS X t� }tjd |� z�y| j |i �}tjd|� W n$ tk �r tjddd� dS X |j d ��s*tjd|� dS t||�}t|��rLtjd|� ntjd|� dS t j|��rttjd� ntjd� dS W d tj|� 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"