관리-도구
편집 파일: envbuild.cpython-39.pyc
a ��Re� � @ s� d Z ddlZddlZddlZddlZddlmZ ddlZddlm Z ddl mZ ddlm Z ddlmZmZ e�e�Zd d � ZG dd� de�Zdd d�Zddd�ZdS )zIBuild wheels/sdists by installing build deps to a temporary environment. � N)� check_call)� get_paths)�mkdtemp� )� toml_load)�Pep517HookCaller� LoggerWrapperc C s^ t �tj�| d�d��}t|�}W d � n1 s40 Y |d }|d |d |�d�fS )Nzpyproject.toml�rbzbuild-system�requiresz build-backendzbackend-path)�io�open�os�path�joinr �get)� source_dir�fZpyproject_dataZbuildsys� r ��/builddir/build/BUILDROOT/alt-python39-pip-21.3.1-2.el8.x86_64/opt/alt/python39/lib/python3.9/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__= 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<