ó
ïRec @ sÖ d Z d d l Z d d l Z d d l m Z d d l Z d d l m Z d d l Z d d l m
Z
d d l m Z d d l
m Z m Z e j e ƒ Z d „ Z d
e f d „ ƒ YZ d d „ Z d d
„ Z d S( sI Build wheels/sdists by installing build deps to a temporary environment.
iÿÿÿÿN( t toml( t
check_call( t get_paths( t mkdtempi ( t Pep517HookCallert
LoggerWrapperc C s[ t t j j | d ƒ ƒ } t j | ƒ } Wd QX| d } | d | d | j d ƒ f S( Ns pyproject.tomls build-systemt requiress
build-backends backend-path( t opent ost patht joinR t loadt get( t
source_dirt ft pyproject_datat buildsys( ( sŠ /builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/pep517/envbuild.pyt _load_pyproject s
t BuildEnvironmentc B s; e Z d Z d Z e d „ Z d „ Z d „ Z d „ Z RS( s‡ Context manager to install build deps in a simple temporary environment
Based on code I wrote for pip, which is MIT licensed.
c C s
| | _ d S( N( t _cleanup( t selft cleanup( ( sŠ /builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/pep517/envbuild.pyt __init__9 s c C sT t d d ƒ | _ t j d | j ƒ t j j d d ƒ | _ t j j d d ƒ | _ t j
d k rj d n d } t | d i | j d 6| j d
6ƒ} | d } | j rÇ | t j | j t j d