HEX
Server: Apache
System: Linux zacp120.webway.host 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP Thu Apr 17 19:10:24 UTC 2025 x86_64
User: govancoz (1003)
PHP: 8.3.26
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: //usr/local/lib/python3.10/site-packages/setuptools/command/__pycache__/dist_info.cpython-310.pyc
o

��i��@s�dZddlZddlZddlZddlZddlZddlmZddlm	Z	ddl
mZddlm
Z
ddlmZddlmZdd	lmZGd
d�de
�Zded
efdd�Zded
efdd�Zdd�Zdd�ZdS)zD
Create a dist_info directory
As defined in the wheel specification
�N)�contextmanager)�cleandoc)�Path)�Command)�log)�	packaging)�SetuptoolsDeprecationWarningc@sVeZdZdZgd�ZddgZddiZdd�Zdd	�Ze	d
e
defdd
��Zdd�Z
dS)�	dist_infozcreate a .dist-info directory))z	egg-base=�ezjdirectory containing .egg-info directories (default: top of the source tree) DEPRECATED: use --output-dir.)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 futurerrrcCs.d|_d|_d|_d|_d|_d|_d|_dS)NF)�egg_base�
output_dir�name�
dist_info_dir�tag_date�	tag_build�
keep_egg_info)�self�r�G/usr/local/lib/python3.10/site-packages/setuptools/command/dist_info.py�initialize_options(s
zdist_info.initialize_optionscCs�|jrd}t�|t�|jp|j|_|j}|jptj}t	|jp |�|_|�
d�}t|j�|_|jr6|j|_n|j|_|j
rB|j
|_
n|j
|_
|��||_t|���}t|���}|�d|��|_tj�|j|j�d��|_dS)NzA--egg-base is deprecated for dist_info command. Use --output-dir.�egg_info�-z
.dist-info)r�warnings�warnrr�distributionZsrc_root�os�curdirrZreinitialize_command�strrr�finalize_optionsr�_safe�get_name�_version�get_versionr�path�joinr)r�msg�distZproject_dirrr�versionrrrr%1s*


zdist_info.finalize_options�dir_path�requires_bkpc
csv�|r6|�d�}t|dd�t||ddd�zdVWt|dd�t�||�dSt|dd�t�||�wdVdS)Nz.__bkp__T)�
ignore_errors)�
dirs_exist_ok�symlinks)�_rm�_copy�shutil�move)rr/r0Zbkp_namerrr�_maybe_bkp_dirPs�
�
zdist_info._maybe_bkp_dircCs�|jjddd�|j��|jj}tj�|�sJd��t�d�	tj�
|j���|�d�}|�
||j��|�||j�Wd�dS1sGwYdS)NT)�parents�exist_okz&.egg-info dir should have been createdz
creating '{}'�bdist_wheel)r�mkdirr�runr"r*�isdirr�info�format�abspathrZget_finalized_commandr8rZegg2dist)r�egg_info_dirr;rrrr=^s

"�z
dist_info.runN)�__name__�
__module__�__qualname__�descriptionZuser_optionsZboolean_optionsZnegative_optrr%rr$�boolr8r=rrrrr	s	
r	�	component�returncCst�dd|�S)zAEscape a component used to form a wheel name according to PEP 491z	[^\w\d.]+�_)�re�sub)rHrrrr&lsr&r.cCsl|�dd�}z
ttj�|���dd�WStjjy5d|�d|�d�}t�t|��t	|��
d�YSw)z0Convert an arbitrary string to a version string.� �.rrJzInvalid version: zk.
        !!


        ###################
        # Invalid version #
        ###################
        z� is not valid according to PEP 440.

        Please make sure specify a valid version for your package.
        Also note that future releases of setuptools may halt the build process
        if an invalid version is given.
        

!!
        )�replacer$rr.�Version�InvalidVersionrr rr&�strip)r.�vr,rrrr(qs��r(cKs&tj�|�rtj|fi|��dSdS)N)r"r*r>r6�rmtree)�dir_name�optsrrrr4�s�r4cKs.tjdkr|�dd�tj||fi|��dS)N)��r2)�sys�version_info�popr6�copytree)�src�dstrVrrrr5�s
r5)�__doc__r"rKr6rYr�
contextlibr�inspectr�pathlibrZdistutils.corer�	distutilsrZsetuptools.externrZsetuptools._deprecation_warningrr	r$r&r(r4r5rrrr�<module>s$W