Hacked By AnonymousFox
�
c��f+
� �l � d Z ddlmZ ddlmZmZ ddlZddlZddlZ G d� de� � Z d� Z
d� Zd � ZdS )
z�distutils.command.install_egg_info
Implements the Distutils 'install_egg_info' command, for installing
a package's PKG-INFO metadata.� )�Command)�log�dir_utilNc �4 � e Zd ZdZdZdgZd� Zd� Zd� Zd� Z dS ) �install_egg_infoz)Install an .egg-info file for the packagez8Install 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__�__doc__�description�user_optionsr r# r4 r6 � r r r r se � � � � � �3�3�L�K�8��L� � � �%� %� %�=� =� =�� � � � r r c �. � t j dd| � � S )z�Convert an arbitrary string to a standard distribution name
Any runs of non-alphanumeric/. characters are replaced with a single '-'.
�[^A-Za-z0-9.]+�-)�re�sub��names r r r 6 s � �
�6�"�C��.�.�.r c �Z � | � dd� � } t j dd| � � S )z�Convert an arbitrary string to a standard version string
Spaces become dots, and all other non-alphanumeric characters become
dashes, with runs of multiple dashes condensed to a single dash.
� �.r? r@ )�replacerA rB )�versions r r r >