관리-도구
편집 파일: build_env.cpython-37.pyc
B ��Re� � @ s d Z ddlZddlZddlZddlZddlmZ ddlmZ ddl m Z ddlmZm Z mZ ddlmZ ddlmZ dd lmZ dd lmZmZ ddlmZ er�ddlmZ dd lmZmZm Z m!Z!m"Z"m#Z# ddl$m%Z% e�&e'�Z(G dd� d�Z)G dd� de*�Z+G dd� de+�Z,dS )z;Build Environment used for isolation during sdist building � N)�OrderedDict)�get_python_lib)� get_paths)�Requirement�VersionConflict� WorkingSet)�__file__)�open_spinner)�call_subprocess)� TempDirectory� tempdir_kinds)�MYPY_CHECK_RUNNING)� TracebackType)�Tuple�Set�Iterable�Optional�List�Type)� PackageFinderc @ s e Zd Zdd� ZdS )�_Prefixc C sj || _ d| _ttjdkrdnd||d�d�d | _td|d�}td|d�}||kr\|g| _n ||g| _d S ) NF�nt�posix_prefix)�base�platbase)�vars�scripts)� plat_specific�prefixT)�path�setupr �os�name�bin_dirr �lib_dirs)�selfr �purelib�platlib� r( ��/builddir/build/BUILDROOT/alt-python37-pip-20.2.4-6.el8.x86_64/opt/alt/python37/lib/python3.7/site-packages/pip/_internal/build_env.py�__init__ s z_Prefix.__init__N)�__name__� __module__�__qualname__r* r( r( r( r) r s r c @ s8 e Zd ZdZdd� Zdd� Zdd� Zdd � Zd d� ZdS ) �BuildEnvironmentzFCreates and manages an isolated environment to install build deps c s� t tjdd�� t� fdd�dD ��| _g | _g | _x6tt| j� � ��D ] }| j� |j� | j�|j � qFW dd� tdd �tdd �fD �}tj�� jd �| _tj�| j�s�t�| j� ttj�| jd�d��"}|�t�d �j|| jd�� W d Q R X d S )NT)�kind�globally_managedc 3 s&