관리-도구
편집 파일: envbuild.cpython-35.pyc
��Re� � @ 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 d � Z Gd d � d e � Z d d d � Z d d d � Z d S)zIBuild wheels/sdists by installing build deps to a temporary environment. � N)�toml)� check_call)� get_paths)�mkdtemp� )�Pep517HookCaller� LoggerWrapperc C s\ t t j j | d � � � } t j | � } Wd QRX| d } | d | d | j d � f S)Nzpyproject.tomlzbuild-system�requiresz build-backendzbackend-path)�open�os�path�joinr �load�get)� source_dir�fZpyproject_dataZbuildsys� r ��/builddir/build/BUILDROOT/alt-python35-pip-20.2.4-5.el8.x86_64/opt/alt/python35/lib/python3.5/site-packages/pip/_vendor/pep517/envbuild.py�_load_pyproject s r c @ sO e Z d Z d Z d Z d d d � Z d d � Z d d � Z d d � Z d S)�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 sR 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 d | j d | j i �} | d } | j r� | t j | j t j d <n | t j t j t j d <| d | d k r| d } n | d t j | d } | j rA| t j | j t j d <n | t j d <| S)N�prefixzpep517-build-env-zTemporary build environment: %s�PATH� PYTHONPATH�nt�posix_prefix�vars�base�platbase�scripts�purelib�platlib) r r �log�infor �environr � save_path�save_pythonpath�namer �pathsep�defpath)r Zinstall_schemeZinstall_dirsr"