관리-도구
편집 파일: envbuild.cpython-38.pyc
U ʗ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 sJ t �tj�| d�d��}t|�}W 5 Q R X |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-python38-pip-22.2.1-2.el8.x86_64/opt/alt/python38/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)�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<