관리-도구
편집 파일: envbuild.cpython-38.opt-1.pyc
U ��.e� � @ s� d Z ddlZddlZddlZddlZddlmZ ddlZddlm Z ddl mZ ddlm Z mZ e�e�Zdd � ZG d d� de�Zddd �Zddd�ZdS )zIBuild wheels/sdists by installing build deps to a temporary environment. � N)� check_call)� get_paths)�mkdtemp� )�Pep517HookCaller� LoggerWrapperc C sH t tj�| d���}t�|�}W 5 Q R X |d }|d |d |�d�fS )Nzpyproject.tomlzbuild-system�requiresz build-backendzbackend-path)�open�os�path�join�toml�load�get)� source_dir�fZpyproject_dataZbuildsys� r �?/usr/lib/python3.8/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)�selfZcleanupr 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<