관리-도구
편집 파일: build_env.cpython-36.pyc
3 �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% ej&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-python36-pip-20.2.4-5.el8.x86_64/opt/alt/python36/lib/python3.6/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| jj � ��D ] }| jj |j� | jj|j � qFW dd� td d �tdd �fD �}tjj� jd�| _tjj| j�s�tj| j� ttjj| jd�d ��"}|jtjd�j|| jd�� W d Q R X d S )NT)�kind�globally_managedc 3 s&