Your IP : 3.147.66.224


Current Path : /opt/alt/python311/lib64/python3.11/distutils/command/__pycache__/
Upload File :
Current File : //opt/alt/python311/lib64/python3.11/distutils/command/__pycache__/install_egg_info.cpython-311.pyc

�

c��f+
��l�dZddlmZddlmZmZddlZddlZddlZGd�de��Z	d�Z
d�Zd	�ZdS)
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�eZdZdZdZdgZd�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)zinstall-dir=�dzdirectory to install toc��d|_dS�N)�install_dir��selfs �I/opt/alt/python311/lib64/python3.11/distutils/command/install_egg_info.py�initialize_optionsz#install_egg_info.initialize_optionss�������c��|�dd��dtt|j�������tt|j�������gtjdd��Rz}tj
�|j|��|_
|j
g|_dS)N�install_lib)rrz%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_optionss����"�"�=�1N�O�O�O�+��	�$�"3�"<�"<�">�">�?�?�@�@���T�%6�%B�%B�%D�%D�E�E�F�F�/
��
�b�q�b�
!�/
�/
�
��
�g�l�l�4�#3�X�>�>�����}����rc���|j}tj�|��r;tj�|��stj||j���n�tj�|��r+|�	tj
|jfd|z��nStj�|j��s/|�	tj|jfd|jz��tjd|��|jsLt|dd���5}|jj�|��ddd��dS#1swxYwYdSdS)N)�dry_runz	Removing z	Creating z
Writing %s�wzUTF-8)�encoding)r rr�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��|jSr
)r!rs r�get_outputszinstall_egg_info.get_outputs.s
���|�rN)
�__name__�
__module__�__qualname__�__doc__�description�user_optionsrr#r4r6�rrrrse������3�3�L�K�8��L� � � �%�%�%�=�=�=�����rrc�.�tjdd|��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 rrr6s��
�6�"�C��.�.�.rc�Z�|�dd��}tjdd|��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@)�replacerArB)�versions rrr>s,���o�o�c�#�&�&�G�
�6�"�C��1�1�1rc�.�|�dd��S)z|Convert a project or version name to its filename-escaped form

    Any '-' characters are currently replaced with '_'.
    r@�_)rHrCs rrrHs��
�<�<��C� � � r)
r:�
distutils.cmdr�	distutilsrrrrrArrrrr=rr�<module>rNs���"�"�"�!�!�!�!�!�#�#�#�#�#�#�#�#�������������$�$�$�$�$�w�$�$�$�V/�/�/�2�2�2�!�!�!�!�!r

?>