관리-도구
편집 파일: install_egg_info.cpython-312.pyc
� t��e � �x � d dl mZmZ d dlZd dlmZ d dlmZ d dlmZ ddl m Z G d� d ej e� Zy) � )�log�dir_utilN)�Command)� namespaces)�unpack_archive� )�ensure_directoryc �8 � e Zd ZdZdZdgZd� Zd� Zd� Zd� Z d� Z y) �install_egg_infoz.Install an .egg-info directory for the package)zinstall-dir=�dzdirectory to install toc � � d | _ y �N)�install_dir��selfs ��/builddir/build/BUILDROOT/alt-python312-setuptools-69.0.2-1.el8.x86_64/opt/alt/python312/lib/python3.12/site-packages/setuptools/command/install_egg_info.py�initialize_optionsz#install_egg_info.initialize_options s � ���� c � � | j dd� | j d� }|j � � d�}|j | _ t j j | j |� | _ g | _ y )N�install_lib)r r �egg_infoz .egg-info)�set_undefined_options�get_finalized_command�_get_egg_basenamer �source�os�path�joinr �target�outputs)r �ei_cmd�basenames r �finalize_optionsz!install_egg_info.finalize_options sg � ��"�"�=�2P�Q��+�+�J�7���.�.�0�1��;���o�o����g�g�l�l�4�#3�#3�X�>�����r c � � | j d� t j j | j � rUt j j | j � s,t j | j | j �� nbt j j | j � r9| j t j | j fd| j z � | j st | j � | j | j dd| j �d| j ��� | j � y )Nr )�dry_runz Removing � zCopying z to )�run_commandr r �isdirr �islinkr �remove_treer% �exists�execute�unlinkr �copytreer �install_namespacesr s r �runzinstall_egg_info.run s� � �����$� �7�7�=�=����%�b�g�g�n�n�T�[�[�.I�� � ����d�l�l�C� �W�W�^�^�D�K�K� (��L�L����T�[�[�N�K�$�+�+�4M�N��|�|��T�[�[�)����T�]�]�B�d�k�k�4�;�;�(W�X����!r c � � | j S r )r r s r �get_outputszinstall_egg_info.get_outputs) s � ��|�|�r c �R � � � fd�}t � j � j |� y )Nc � �� dD ] }| j |� sd|z | v s� y �j j |� t j d| |� |S )N)z.svn/zCVS/�/zCopying %s to %s)� startswithr �appendr �debug)�src�dst�skipr s �r �skimmerz*install_egg_info.copytree.<locals>.skimmer. sX �� � (� ���>�>�$�'�3��:��+<�� � �L�L����$��I�I�(�#�s�3��Jr )r r r )r r<