관리-도구
편집 파일: envbuild.cpython-311.pyc
� �Re� � �� � d Z ddlZddlZddlZddlZddlmZ ddlZddlm Z ddl mZ ddlm Z ddlmZmZ ej e� � Zd � Z G d � de� � Zdd�Zdd �ZdS )zIBuild wheels/sdists by installing build deps to a temporary environment. � N)� check_call)� get_paths)�mkdtemp� )� toml_load)�Pep517HookCaller� LoggerWrapperc � � t j t j � | d� � d� � 5 }t |� � }d d d � � n# 1 swxY w Y |d }|d |d |� d� � fS )Nzpyproject.toml�rbzbuild-system�requiresz build-backendzbackend-path)�io�open�os�path�joinr �get)� source_dir�f�pyproject_data�buildsyss ��/builddir/build/BUILDROOT/alt-python311-pip-21.3.1-3.el8.x86_64/opt/alt/python311/lib/python3.11/site-packages/pip/_vendor/pep517/envbuild.py�_load_pyprojectr s� � � ���G�L�L��%5�6�6�� � � &� �"�1���� &� &� &� &� &� &� &� &� &� &� &���� &� &� &� &� �n�-�H������!����^�$�$�� s �A�A�Ac �0 � e Zd ZdZdZdd�Zd� Zd� Zd� 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 � � || _ d S �N)�_cleanup)�self�cleanups r �__init__zBuildEnvironment.__init__= s � ��� � � � c � � t d�� � | _ t � d| j � � t j � dd � � | _ t j � dd � � | _ t j dk rdnd}t || j | j d�� � � }|d }| j r%|t j z | j z t j d<