관리-도구
편집 파일: install_egg_info.cpython-311.opt-2.pyc
� c��f+ � �j � d dl mZ d dlmZmZ d dlZd dlZd dlZ G d� de� � Zd� Z d� Z d� ZdS ) � )�Command)�log�dir_utilNc �2 � e Zd Z dZdgZd� Zd� Zd� Zd� ZdS )�install_egg_infoz8Install package's PKG-INFO metadata as an .egg-info file)zinstall-dir=�dzdirectory to install toc � � d | _ d S �N)�install_dir��selfs �I/opt/alt/python311/lib64/python3.11/distutils/command/install_egg_info.py�initialize_optionsz#install_egg_info.initialize_options s � ������ c � � | � dd� � dt t | j � � � � � � � t t | j � � � � � � � gt j d d� �R z }t j � | j |� � | _ | j g| _ d S )N�install_lib)r r z%s-%s-py%d.%d.egg-info� )�set_undefined_options�to_filename� safe_name�distribution�get_name�safe_version�get_version�sys�version_info�os�path�joinr �target�outputs)r �basenames r �finalize_optionsz!install_egg_info.finalize_options s� � ��"�"�=�1N�O�O�O�+�� �$�"3�"<�"<�">�">�?�?�@�@���T�%6�%B�%B�%D�%D�E�E�F�F�/ � � �b�q�b� !�/ � / � �� �g�l�l�4�#3�X�>�>�����}����r c �� � | j }t j � |� � r;t j � |� � st j || j �� � n�t j � |� � r+| � t j | j fd|z � � nSt j � | j � � s/| � t j | j fd| j z � � t j d|� � | j sLt |dd�� � 5 }| j j � |� � d d d � � d S # 1 swxY w Y d S d S )N)�dry_runz Removing z Creating z Writing %s�wzUTF-8)�encoding)r r r �isdir�islinkr �remove_treer% �exists�execute�unlinkr �makedirsr �info�openr �metadata�write_pkg_file)r r �fs r �runzinstall_egg_info.run s� � ���� �7�=�=�� � � 7������)?�)?� 7�� ����>�>�>�>�>� �W�^�^�F� #� #� 7��L�L���D�K�>�+�f�2D�E�E�E�E�����t�/�0�0� 7��L�L���t�'7�&9�$�T�%5�5� 7� 7� 7����v�&�&�&��|� =��f�c�G�4�4�4� =���!�*�9�9�!�<�<�<� =� =� =� =� =� =� =� =� =� =� =� =���� =� =� =� =� =� =� =� =s �- E�E�!Ec � � | j S r )r! r s r �get_outputszinstall_egg_info.get_outputs. s � ��|�r N) �__name__� __module__�__qualname__�description�user_optionsr r# r4 r6 � r r r r sb � � � � � �3�L�K�8��L� � � �%� %� %�=� =� =�� � � � r r c �0 � t j dd| � � S )N�[^A-Za-z0-9.]+�-)�re�sub��names r r r 6 s � �� �6�"�C��.�.�.r c �\ � | � dd� � } t j dd| � � S )N� �.r>