File: //lib/python3.9/site-packages/pip/_internal/operations/install/__pycache__/legacy.cpython-39.pyc
a
?�f� � @ s� d Z ddlZddlZddlZddlmZ ddlmZ ddlm Z ddl
mZ ddlm
Z
ddlmZ dd lmZ dd
lmZ er�ddlmZmZmZ ddlmZ dd
lmZ e�e�ZG dd� de�Z dd� Z!dS )z6Legacy installation process, i.e. `setup.py install`.
� N)�change_root)�InstallationError)�
indent_log)�
ensure_dir)�make_setuptools_install_args)�runner_with_spinner_message)�
TempDirectory)�MYPY_CHECK_RUNNING)�List�Optional�Sequence)�BuildEnvironment)�Schemec @ s e Zd Zdd� ZdS )�LegacyInstallFailurec C s t �� | _d S �N)�sys�exc_info�parent)�self� r �K/usr/lib/python3.9/site-packages/pip/_internal/operations/install/legacy.py�__init__ s zLegacyInstallFailure.__init__N)�__name__�
__module__�__qualname__r r r r r r s r c s> |j }tdd���}z�tj�|jd�}t||| |� ||||| |d�}td�|
��}t� �@ |� |||d� W d � n1 s�0 Y W d � n1 s�0 Y tj� |�s�t
�d|� W W d � dS W n ty� t
�Y n0 t|��}|�� �� }W d � n1 �s0 Y W d � n1 �s80 Y � fd d
�}|D ],}tj�|�}|�d��rR||�} �q��qRd�|
�}t|��g }|D ]@}|�� }tj�|��r�|tjj7 }|�tj�||�|�� �q�|�� t|� tj�|d
�}t|d��$}|�d�|�d � W d � n1 �s00 Y dS )N�record)�kindzinstall-record.txt)
�global_options�install_options�record_filename�root�prefix�
header_dir�home�
use_user_siteZno_user_config� pycompilezRunning setup.py install for {})�cmd�cwdzRecord file %s not foundFc s&