관리-도구
편집 파일: envbuild.cpython-37.pyc
B ��Re� � @ s� d Z ddlZddlZddlmZ ddlZddlmZ ddlZddl m Z ddlmZ ddl mZmZ e�e�Zd d � ZG dd� de�Zdd d�Zddd�ZdS )zIBuild wheels/sdists by installing build deps to a temporary environment. � N)�toml)� check_call)� get_paths)�mkdtemp� )�Pep517HookCaller� LoggerWrapperc C sH t tj�| d���}t�|�}W d Q R X |d }|d |d |�d�fS )Nzpyproject.tomlzbuild-system�requiresz build-backendzbackend-path)�open�os�path�joinr �load�get)� source_dir�fZpyproject_dataZbuildsys� 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/envbuild.py�_load_pyproject s r c @ s6 e Zd ZdZdZddd�Zdd� Zdd � Zd d� ZdS ) �BuildEnvironmentz�Context manager to install build deps in a simple temporary environment Based on code I wrote for pip, which is MIT licensed. NTc C s || _ d S )N)�_cleanup)�self�cleanupr r r �__init__9 s zBuildEnvironment.__init__c C s� t dd�| _t�d| j� tj�dd �| _tj�dd �| _tj dkrHdnd}t || j| jd�d �}|d }| jr�|tj | j tjd<