HEX
Server: LiteSpeed
System: Linux php-prod-1.spaceapp.ru 5.15.0-157-generic #167-Ubuntu SMP Wed Sep 17 21:35:53 UTC 2025 x86_64
User: sport3497 (1034)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: //usr/local/lib/python3.10/dist-packages/setuptools/command/__pycache__/dist_info.cpython-310.pyc
o

��hz
�@s�dZddlZddlZddlmZddlmZddlmZddl	m
Z
ddlmZ
d	d
lmZddlmZddlmZGd
d�de�ZdS)zD
Create a dist_info directory
As defined in the wheel specification
�N)�contextmanager)�Path)�cast�)�_normalization)�rmdir�)�egg_info)�log)�Commandc@s^eZdZdZdZgd�ZddgZddiZdd�Zddd�Z	e
d
edefdd��Z
ddd�Zd
S)�	dist_infoz�
    This command is private and reserved for internal use of setuptools,
    users should rely on ``setuptools.build_meta`` APIs.
    z@DO NOT CALL DIRECTLY, INTERNAL ONLY: create .dist-info directory))zoutput-dir=�ozYdirectory inside of which the .dist-info will becreated [default: top of the source tree])�tag-date�dz0Add date stamp (e.g. 20050528) to version number)z
tag-build=�bz-Specify explicit tag to add to version number)�no-date�Dz"Don't include date stamp [default])�
keep-egg-infoNz,*TRANSITIONAL* will be removed in the futurerrrcCs(d|_d|_d|_d|_d|_d|_dS)NF)�
output_dir�name�
dist_info_dir�tag_date�	tag_build�
keep_egg_info)�self�r�G/usr/local/lib/python3.10/dist-packages/setuptools/command/dist_info.py�initialize_options,s
zdist_info.initialize_options�returnNcCs�|j}|jptj}t|jp|�|_tt|�d��}t	|j�|_
|jr'|j|_n|j|_|jr3|j|_n|j|_|�
�||_t�|���}t�|���}|�d|��|_tj�|j|j�d��|_dS)Nr	�-z
.dist-info)�distribution�src_root�os�curdirrrr�egg_info_cls�reinitialize_command�str�egg_baserr�finalize_optionsr	r�
safer_name�get_name�safer_best_effort_version�get_versionr�path�joinr)r�dist�project_dirr	r�versionrrrr(4s"

zdist_info.finalize_options�dir_path�requires_bkpc
csx�|r7|�d�}t|dd�tj||ddd�zdVWt|dd�t�||�dSt|dd�t�||�wdVdS)Nz.__bkp__T)�
ignore_errors)�
dirs_exist_ok�symlinks)�_rm�shutil�copytree�move)rr2r3�bkp_namerrr�_maybe_bkp_dirNs�
�
zdist_info._maybe_bkp_dircCs�|jjddd�|j��|jj}tj�|�sJd��t�dtj�	|j
��d��|�d�}|�||j
��|�||j
�Wd�dS1sHwYdS)NT)�parents�exist_okz&.egg-info dir should have been createdz
creating '�'�bdist_wheel)r�mkdirr	�runr"r-�isdirr
�info�abspathr�get_finalized_commandr<r�egg2dist)r�egg_info_dirr@rrrrB\s

"�z
dist_info.run)rN)�__name__�
__module__�__qualname__�__doc__�description�user_options�boolean_options�negative_optrr(rr&�boolr<rBrrrrrs


r)rLr"r8�
contextlibr�pathlibr�typingr�r�_shutilrr7r	r$�	distutilsr
�distutils.corerrrrrr�<module>s