관리-도구
편집 파일: legacy.cpython-311.pyc
� �Re> � � � d Z ddlZddlZddlmZ ddlmZmZmZ ddl m Z ddlmZ ddl mZ ddlmZ dd lmZ dd lmZ ddlmZ ddlmZ ej e� � Z G d � de� � Zdee dee deddfd�Zdee dee dee dee dee de de dedede dede dedede fd �Z!dS )!z6Legacy installation process, i.e. `setup.py install`. � N)�change_root)�List�Optional�Sequence)�BuildEnvironment)�InstallationError)�Scheme)� indent_log)� ensure_dir)�make_setuptools_install_args)�runner_with_spinner_message)� TempDirectoryc � � e Zd ZdS )�LegacyInstallFailureN)�__name__� __module__�__qualname__� � ��/builddir/build/BUILDROOT/alt-python311-pip-21.3.1-3.el8.x86_64/opt/alt/python311/lib/python3.11/site-packages/pip/_internal/operations/install/legacy.pyr r s � � � � � ��Dr r �record_lines�root�req_description�returnc �F �� dt dt f�fd�}| D ]C}t j � |� � }|� d� � r ||� � } n%�Dd� |� � }t |� � �g }| D ]�}|� � � } t j � | � � r| t j j z } |� t j � || � � |� � � � ��|� � � t |� � t j � |d� � } t | d� � 5 }|� d� |� � dz � � d d d � � d S # 1 swxY w Y d S ) N�pathr c �j �� ��t j � | � � s| S t �| � � S )N)�osr �isabsr )r r s �r �prepend_rootzBwrite_installed_files_from_setuptools_record.<locals>.prepend_root s/ �� ��<�r�w�}�}�T�2�2�<��K��t�T�*�*�*r z .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� )�strr r �dirname�endswith�formatr �strip�isdir�sep�append�relpath�sortr �join�open�write)r r r r �line� directory�egg_info_dir�message� new_lines�filename�inst_files_path�fs ` r �,write_installed_files_from_setuptools_recordr8 s� �� � +�3� +�3� +� +� +� +� +� +� � )� )���G�O�O�D�)�)� ����k�*�*� �'�<� �2�2�L��E� � >� �&�� !� !� � ��(�(�(��I�� P� P���:�:�<�<�� �7�=�=��"�"� $�����#�H����������h�)?�)?��N�N�O�O�O�O� �N�N�����|�����g�l�l�<�1F�G�G�O� �o�s� #� #� -�q� ���� � �)�$�$�t�+�,�,�,�-� -� -� -� -� -� -� -� -� -� -� -���� -� -� -� -� -� -s �,F�F�F�install_options�global_options�home�prefix� use_user_site� pycompile�scheme� setup_py_path�isolated�req_name� build_env�unpacked_source_directoryc �$ � |j }t d�� � 5 } t j � |j d� � }t ||| ||||||| |�� � }t d| � �� � }t � � 5 |5 |||�� � d d d � � n# 1 swxY w Y d d d � � n# 1 swxY w Y t j � |� � s)t � d|� � d d d � � dS n# t $ r }t |�d }~ww xY wt |� � 5 }|� � � � � � }d d d � � n# 1 swxY w Y d d d � � n# 1 swxY w Y t! ||| � � d S ) N�record)�kindzinstall-record.txt) r: r9 �record_filenamer r<