HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //usr/lib/python3/dist-packages/pip/_internal/operations/install/__pycache__/legacy.cpython-310.pyc
o

@%Ne��@sdZddlZddlZddlmZddlmZmZmZddl	m
Z
ddlmZm
Z
ddlmZddlmZdd	lmZdd
lmZddlmZe�e�Zdeed
eededdfdd�Zdeedeed
eedeedeededededededede
dededefdd�ZdS) z6Legacy installation process, i.e. `setup.py install`.
�N)�change_root)�List�Optional�Sequence)�BuildEnvironment)�InstallationError�LegacyInstallFailure)�Scheme)�
ensure_dir)�make_setuptools_install_args)�runner_with_spinner_message)�
TempDirectory�record_lines�root�req_description�returncs�dtdtf�fdd�}|D]}tj�|�}|�d�r ||�}n
q
d�|�}t|��g}|D]}|��}	tj�|	�r@|	tjj	7}	|�
tj�||	�|��q.|��t
|�tj�|d�}
t|
d��}|�d	�|�d	�Wd�dS1swwYdS)
N�pathrcs"�dus
tj�|�s|St�|�S)N)�osr�isabsr)r�r��I/usr/lib/python3/dist-packages/pip/_internal/operations/install/legacy.py�prepend_roots
zBwrite_installed_files_from_setuptools_record.<locals>.prepend_rootz	.egg-infoz�{} did not indicate that it installed an .egg-info directory. Only setup.py projects generating .egg-info directories are supported.zinstalled-files.txt�w�
)�strrr�dirname�endswith�formatr�strip�isdir�sep�append�relpath�sortr
�join�open�write)rrrr�line�	directory�egg_info_dir�message�	new_lines�filename�inst_files_path�frrr�,write_installed_files_from_setuptools_records.
��"�r0�install_options�global_options�home�prefix�
use_user_site�	pycompile�scheme�
setup_py_path�isolated�req_name�	build_env�unpacked_source_directorycCs4|j}tdd���}zMtj�|jd�}t||||||||||	|d�}td|
���}|�|||d�Wd�n1s;wYtj�|�sUt�	d|�WWd�dSWnt
yh}zt|
d	�|�d}~wwt|��}|�
���}Wd�n1s~wYWd�n1s�wYt|||
�d
S)N�record)�kindzinstall-record.txt)
r2r1�record_filenamerr4�
header_dirr3r5�no_user_configr6zRunning setup.py install for )�cmd�cwdzRecord file %s not foundF)�package_detailsT)�headersr
rrr%rr�exists�logger�debug�	Exceptionrr&�read�
splitlinesr0)r1r2rr3r4r5r6r7r8r9r:r;r<rr@�temp_dirr?�install_args�runner�er/rrrr�install9sT�������
	���+rP)�__doc__�loggingr�distutils.utilr�typingrrr�pip._internal.build_envr�pip._internal.exceptionsrr�pip._internal.models.schemer	�pip._internal.utils.miscr
�$pip._internal.utils.setuptools_buildr�pip._internal.utils.subprocessr�pip._internal.utils.temp_dirr
�	getLogger�__name__rGrr0�boolrPrrrr�<module>sj
���
�%��������	�
���
���