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.7/site-packages/setuptools/command/__pycache__/dist_info.cpython-37.pyc
B

N��gc�@s�dZddlZddlZddlZddlmZddlmZddlm	Z	ddl
mZddlm
Z
dd	lmZGd
d�de	�Zdd
�Zdd�ZdS)zD
Create a dist_info directory
As defined in the wheel specification
�N)�contextmanager)�log)�Command)�Path�)�_normalization)�SetuptoolsDeprecationWarningc@s`eZdZdZdZddddddgZd	d
gZdd	iZdd
�Zdd�Z	e
eed�dd��Z
dd�ZdS)�	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)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))ztag-date�dz0Add date stamp (e.g. 20050528) to version number)z
tag-build=�bz-Specify explicit tag to add to version number)zno-date�Dz"Don't include date stamp [default])z
keep-egg-infoNz,*TRANSITIONAL* will be removed in the futureztag-datez
keep-egg-infozno-datecCs.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�@/tmp/pip-unpacked-wheel-yrlplx0q/setuptools/command/dist_info.py�initialize_options)szdist_info.initialize_optionscCs�|jr&d}tj|dd�|jp"|j|_|j}|jp6tj}t|jpB|�|_|�	d�}t
|j�|_|jrn|j|_n|j|_|jr�|j|_n|j|_|�
�||_t�|���}t�|���}|�d|��|_tj�|j|j�d��|_dS)NzA--egg-base is deprecated for dist_info command. Use --output-dir.)i��	�)Zdue_date�egg_info�-z
.dist-info)rr�emitr�distributionZsrc_root�os�curdirr�reinitialize_command�strrr�finalize_optionsrrZ
safer_name�get_nameZsafer_best_effort_version�get_versionr�path�joinr)r�msg�distZproject_dirrr�versionrrrr$2s*


zdist_info.finalize_options)�dir_path�requires_bkpc
cs\|rR|�d�}t|dd�t||ddd�z
dVWdt|dd�t�||�XndVdS)Nz.__bkp__T)�
ignore_errors)�
dirs_exist_ok�symlinks)�_rm�_copy�shutil�move)rr,r-Zbkp_namerrr�_maybe_bkp_dirSs

zdist_info._maybe_bkp_dirc	Cs�|jjddd�|j��|jj}tj�|�s6td��t�	d�
tj�|j���|�
d�}|�||j��|�||j�WdQRXdS)NT)�parents�exist_okz&.egg-info dir should have been createdz
creating '{}'�bdist_wheel)r�mkdirr�runr r'�isdir�AssertionErrorr�info�format�abspathr�get_finalized_commandr5rZegg2dist)r�egg_info_dirr8rrrr:as

z
dist_info.runN)�__name__�
__module__�__qualname__�__doc__�description�user_options�boolean_options�negative_optrr$rr#�boolr5r:rrrrr	s	!
r	cKstj�|�rtj|f|�dS)N)r r'r;r3�rmtree)Zdir_name�optsrrrr1osr1cKs*tjdkr|�dd�tj||f|�dS)N)��r/)�sys�version_info�popr3�copytree)�src�dstrLrrrr2ts
r2)rEr r3rO�
contextlibr�	distutilsr�distutils.corer�pathlibr�r�warningsrr	r1r2rrrr�<module>s]