관리-도구
편집 파일: envbuild.cpython-36.pyc
3 �Re� � @ s� d Z ddlZddlZddlmZ ddlZddlmZ ddlZddl m Z ddlmZ ddl mZmZ eje�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 tjj| d���}tj|�}W d Q R X |d }|d |d |jd�fS )Nzpyproject.tomlzbuild-system�requiresz build-backendzbackend-path)�open�os�path�joinr �load�get)� source_dir�fZpyproject_dataZbuildsys� 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/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�| _tjd| j� tjjdd �| _tjjdd �| _tj dkrHdnd}t || j| jd�d �}|d }| jr�|tj | j tjd<