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<