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__/bdist_wheel.cpython-310.pyc
o

��h�V�@spdZddlmZddlZddlZddlZddlZddlZddlZddl	Z	ddl
mZmZddl
mZddlmZddlmZmZddlmZmZdd	lmZmZdd
lmZddlmZmZm Z dd
l!m"Z"ddl#m$Z$ddl	m%Z%ddl&m&Z'ddl(m)Z)d0dd�Z*e+e�,d�d�Z-dZ.d1dd�Z/d2dd�Z0d3d!d"�Z1	#d4d5d(d)�Z2d6d*d+�Z3d0d,d-�Z4Gd.d/�d/e�Z5dS)7zI
Create a wheel (.whl) distribution.

A wheel is a built archive format.
�)�annotationsN)�Iterable�Sequence)�BytesGenerator)�iglob)�Literal�cast)�ZIP_DEFLATED�
ZIP_STORED)�tags�version)�	WheelFile�)�Command�__version__�_shutil)�_safe_license_file)�
safer_name)�SetuptoolsDeprecationWarning�)�egg_info)�logr�str�returncCs@ztt�|��WStjy|�dd�}t�dd|�YSw)zB
    Convert an arbitrary string to a standard version string
    � �.z[^A-Za-z0-9.]+�-)r�_packaging_version�Version�InvalidVersion�replace�re�sub�r�r$�I/usr/local/lib/python3.10/dist-packages/setuptools/command/bdist_wheel.py�safe_version"s�r&rzcp3\d�boolcCst�d�dkS)N�P�)�struct�calcsizer$r$r$r%�_is_32bit_interpreter3�r,cCsdtjj��S)N�py)�sys�version_info�majorr$r$r$r%�
python_tag7r-r2�archive_root�
str | NonecCs^t��}|�d�r|durddlm}|||�}nt�r)|dkr#d}n|dkr)d}|�d	d
�S)z0Return our platform name 'win32', 'linux_x86_64'�macosxNr)�calculate_macosx_platform_tag�linux-x86_64z
linux-i686�
linux-aarch64zlinux-armv7lr�_)�	sysconfig�get_platform�
startswith�wheel.macosx_libfiler6r,r )r3�resultr6r$r$r%r;;sr;T�var�fallback�expected�warncCs:t�|�}|dur|rtjd|�d�tdd�|S||kS)zfUse a fallback value for determining SOABI flags if the needed config
    var is unset or unavailable.NzConfig variable 'z+' is unset, Python ABI tag may be incorrectr��
stacklevel)r:�get_config_var�warningsrB�RuntimeWarning)r?r@rArB�valr$r$r%�get_flagOs

�rIcCsjt�d�}t��}|s4|dvr4ttd�r4d}d}tdttd�|dkd�r&d	}|�t���|�|��}|S|rJ|dkrJ|�d
�rJd|�	d�d}|S|rg|dkrg|�d�rg|�	d�d
}ttd�re|d	7}|S|r�|dkr�d�
|�	d�dd��}|�dd��dd�}|S|r�|dkr�d�
|�	d�dd��}|�dd��dd�}|S|r�|�dd��dd�}|Sd}|S)zJReturn the ABI tag based on SOABI (if available) or emulate SOABI (PyPy2).�SOABI)�cp�pp�
maxunicode��Py_DEBUG�gettotalrefcountrK)rB�d�cpythonrrrrLNrrr9�graalpy�)r:rEr�interpreter_name�hasattrr/rI�interpreter_versionr<�split�joinr )�soabi�implrQ�u�abir$r$r%�get_abi_tag`s<
��

�	���r^cCst|��dd�S)Nrr9)r&r r#r$r$r%�
safer_version�sr_c@s�eZdZdZeed�Zdddded��d�fd	d
ddd
dddddd�e��d�fddde	��d�fdddgZ
gd�Zd>dd�Zd>dd �Z
d>d!d"�Zed?d$d%��Zd@d'd(�Zd)d*�Zd+e�d,�fdAd/d0�ZdBd2d3�ZedCd5d6��ZdDd9d:�ZdEd<d=�ZdS)F�bdist_wheelzcreate a wheel distribution)�stored�deflated)z
bdist-dir=�bz1temporary directory for creating the distributionz
plat-name=�pz8platform name to embed in generated filenames [default: N�])�	keep-temp�kzPkeep the pseudo-installation tree around after creating the distribution archive)z	dist-dir=rQz-directory to put final built distributions in)�
skip-buildNz2skip rebuilding everything (for testing/debugging))�relativeNz7build the archive using relative paths [default: false])zowner=r\z@Owner name used when creating a tar file [default: current user])zgroup=�gzAGroup name used when creating a tar file [default: current group])�	universalNz4*DEPRECATED* make a universal wheel [default: false]zcompression=zzipfile compression (one of: z, z) [default: 'deflated']zpython-tag=z3Python implementation compatibility tag [default: 'z'])z
build-number=NzqBuild number for this particular version. As specified in PEP-0427, this must start with a digit. [default: None])zpy-limited-api=Nz?Python tag (cp32|cp33|cpNN) for abi3 wheel tag [default: false])zdist-info-dir=Nz�directory where a pre-generated dist-info can be found (e.g. as a result of calling the PEP517 'prepare_metadata_for_build_wheel' method))rfrhrirkr�NonecCs~d|_d|_d|_d|_d|_d|_d|_d|_d|_d|_	d|_
d|_d|_d|_
d|_d|_t�|_d|_d|_d|_dS)NrN�zipFrb)�	bdist_dir�data_dir�	plat_name�plat_tag�format�	keep_temp�dist_dir�
dist_info_dir�egginfo_dir�root_is_pure�
skip_buildri�owner�grouprk�compressionr2�build_number�py_limited_api�plat_name_supplied��selfr$r$r%�initialize_options�s(
zbdist_wheel.initialize_optionscCs|js|�d�j}tj�|d�|_|jdur#tt|j	�
d��}|��|jd|_
t|j�|_d}|jdgt||��R�|j	��pF|j	��|_|��|j	�d�}d|vrmt�d�|dd��}|��d	vrmd
|_|jrxtjddd
d�|jdur�|jdd�� �s�t!d��dSdS)N�bdist�wheelrz.data)rtrprxrkz=The [wheel] section is deprecated. Use [bdist_wheel] instead.r)�1�true�yesTz#bdist_wheel.universal is deprecatedaj
                With Python 2.7 end-of-life, support for building universal wheels
                (i.e., wheels that support both Python 2 and Python 3)
                is being obviated.
                Please discontinue using this option, or if you still need it,
                file an issue with pypa/setuptools describing your use case.
                )i���)�due_datez1Build tag (build-number) must start with a digit.)"rn�get_finalized_command�
bdist_base�os�pathrYrur�egg_info_cls�distribution�get_command_obj�ensure_finalized�wheel_dist_nameror'rpr~�set_undefined_optionsrm�has_ext_modules�has_c_librariesrw�_validate_py_limited_api�get_option_dictrrB�strip�lowerrkr�emitr|�isdigit�
ValueError)r�r�r�need_optionsr�rHr$r$r%�finalize_options�s8
�
��zbdist_wheel.finalize_optionscCsH|jsdSt�t|j�stdt�d���t�d�r"td|j�d���dS)Nzpy-limited-api must match '�'�Py_GIL_DISABLEDz`py_limited_api=z�` not supported. `Py_LIMITED_API` is currently incompatible with `Py_GIL_DISABLED`. See https://github.com/python/cpython/issues/111506.)r}r!�match�PY_LIMITED_API_PATTERNr�r:rErr$r$r%r�s
��z$bdist_wheel._validate_py_limited_apircCs8t|j���t|j���g}|jr|�|j�d�|�S)z4Return distribution full name with - replaced with _r)rr��get_namer_�get_versionr|�appendrY)r��
componentsr$r$r%r�$s�
zbdist_wheel.wheel_dist_name�tuple[str, str, str]cs(|jr
|jr
|j�n'|jrd�n!|jr|j�d�s|j�nt|j��t�r1�dvr+d��dvr1d�����dd��d	d��d
d��|jrT|j	rJd}n|j
}|d�f}|St��}t�
�}||}|jrp||�d
�rp|j}d}ntt����}||�f}�fdd�t��D�}||vs�Jd|����|S)N�anyr5)r7�linux_x86_64�
linux_i686)r8�
linux_aarch64�linux_armv7lrr9rrzpy2.py3�none�cp3�abi3csg|]	}|j|j�f�qSr$)�interpreterr])�.0�t�rpr$r%�
<listcomp>as�z'bdist_wheel.get_tag.<locals>.<listcomp>z'would build wheel with unsupported tag )r~rprwr<r;rnr,r�r rkr2rrUrWr}rr^�sys_tags)r�r[�tag�	impl_name�impl_ver�abi_tag�supported_tagsr$r�r%�get_tag/sF
�
�

�
�zbdist_wheel.get_tagcCs�|�d�}d|_d|_|�d�}d|_|js|�d�|jddd�}|j|_d|_|j|_d|_	|�d	�}d|_
d
D]}t|d|tj
�|j|��q:d}tjd
krdtj
�tj
�|jd��}||_|_t||jrkdnd|�t�d|j���|�d�|��\}}}	|j�d|�d|�d|	��}
|js�|j}ntj
�|j|�|j��}|�dd�t|j����dt |j�!���d�}tj
�|j|�}
|j"r�t�#d|j"���t$�%|j"|
�t&�'|j(�n|�)|j(|
�|�*|
�tj
�+|j,�s�t�-|j,�tj
�|j,|
d�}t.|d|�/���
}|�0|�Wd�n	1�swYt1|jdg��2dt3j4j5�dt3j4j6��|f�|j7�sOt�d|j���|j8�sQt&�'|j�dSdSdS)N�
build_scripts�pythonT�	build_extF�build�install)�reinit_subcommands�install_scripts)�headers�scripts�data�purelib�platlib�install_rN�ntz..�install_purelib�install_platlibzinstalling to r�install_egg_info)�targetrvz
.dist-infozreusing z.whl�w�
dist_filesr`rz	removing )9�reinitialize_command�
executable�force�inplacerx�run_commandrn�root�compile�warn_dir�no_ep�setattrr�r�rYro�name�normpath�install_libbase�install_librwr�infor�r�ri�_ensure_relative�install_baser�rr�r�r_r�ru�debug�shutil�copytreer�rmtreerv�egg2dist�write_wheelfile�existsrt�makedirsr
�_zip_compression�write_files�getattrr�r/r0r1�minorrs�dry_run)r�r�r�r�r��key�basedir_observed�impl_tagr�rq�archive_basenamer3�distinfo_dirname�distinfo_dir�
wheel_path�wfr$r$r%�runis~




�
���
���zbdist_wheel.runzsetuptools (�)�wheelfile_base�	generatorc
Cs�ddlm}|�}d|d<||d<t|j���|d<|jdur$|j|d<|��\}}}|�d�D]}|�d�D]}	|�d�D]}
d	�||	|
f�|d
<q>q7q0t	j
�|d�}t�d|���t
|d
��}t|dd��|�Wd�dS1svwYdS)Nr)�Messagez1.0z
Wheel-Version�	GeneratorzRoot-Is-Purelib�Buildrr�Tag�WHEELz	creating �wb)�maxheaderlen)�
email.messager�rrwr�r|r�rXrYr�r�rr��openr�flatten)
r�r�r�r��msgr�r�rqr[r]�plat�wheelfile_path�fr$r$r%r��s&

��"�zbdist_wheel.write_wheelfiler�cCs6tj�|�\}}|dd�tjkr||dd�}|S)Nrr)r�r��
splitdrive�sep)r�r��driver$r$r%r��szbdist_wheel._ensure_relative�
Iterable[str]c	Cstdkr|jjjp
dStt�}|j�d�}tdkr%ttt|jjj�}nd|vr2|dd�	�}nd}d|vrIt
jdtd	d
�|�
|dd�|sT|sTt|t�sTd}|D]3}t|�D],}|�d�rmt�d
|�d��q\||vr�tj�|�r�t�d|�d|�d��|�
|�q\qV|S)N�9r$�metadata�*�
license_filesr�license_filezEThe "license_file" option is deprecated. Use "license_files" instead.rrC)zLICEN[CS]E*zCOPYING*zNOTICE*zAUTHORS*�~zignoring license file "z" as it looks like a backupzadding license file "z" (matched pattern "z"))�setuptools_major_versionr�r
r�setrr�rrrXrFrB�DeprecationWarning�add�
isinstance�listr�endswithrr�r�r��isfiler�)r��filesr
�patterns�patternr�r$r$r%�
license_paths�sB
�

��
��
zbdist_wheel.license_paths�egginfo_path�
distinfo_pathcCsjddd�}||�tj�|�s?ddl}tj�tj�|�d	�}|�|�}d
|�d�}|r;tj�|d�}|d|�d
�7}t|��tj�|d�}	tj	||dd�d�tj�|d�}
t
|
dd��}|����}Wd�n1snwY|sy||
�tj�|d�}
t�
|	|
�tj�|d�}|jD]}t|�}tj�||�}tjtj�|�dd�t�
||�q�||�dS)z:Convert an .egg-info directory into a .dist-info directoryrdrrrlcSsPtj�|�rtj�|�stj�|�rt�|�dStj�|�r&t�|�dSdS)z-Appropriately delete directory, file or link.N)r�r�r��islink�isdirrr��unlink)rdr$r$r%�adioss
$�z#bdist_wheel.egg2dist.<locals>.adiosrNz
*.egg-infozEgg metadata expected at z but not foundz (z) found - possible misnamed archive file?)�PKG-INFOcSshd�S)N>�SOURCES.txt�not-zip-safe�requires.txtr$r$)�x�yr$r$r%�<lambda>6sz&bdist_wheel.egg2dist.<locals>.<lambda>)�ignorezdependency_links.txtzutf-8)�encoding�METADATA�licensesT)�exist_ok)rdrrrl)r�r�r��globrY�dirname�basenamer�r�r�r�readr��copyrrr�)r�rrr#r0�pat�possible�err�alt�pkginfo_path�dependency_links_path�dependency_links_file�dependency_links�
metadata_path�licenses_folder_path�license_path�	safe_path�dist_info_license_pathr$r$r%r�s@

��
zbdist_wheel.egg2dist�intcCsPt|jt�r|j|j��vr|jS|j�t|j��}|dur |Std|j����)NzUnsupported compression: )rr{rB�supported_compressions�values�getrr�)r�r{r$r$r%r�Qs
�zbdist_wheel._zip_compression)rrl�rr)rr�)r�rr�rrrl)r�rrr)rr)rrrrrrl)rrB)�__name__�
__module__�__qualname__�descriptionr
r	rCr;rYr2�user_options�boolean_optionsr�r�r��propertyr�r�r�rr�r�rr�r�r$r$r$r%r`�s\������?


/

:
_�

,>r`)rrrr)rr'rF)r3r4rr)TT)
r?rr@r'rAr'rBr'rr')rr4)6�__doc__�
__future__rr�r!r�r*r/r:rF�collections.abcrr�email.generatorrr0r�typingrr�zipfiler	r
�	packagingrrr�wheel.wheelfiler
rNrrr�_core_metadatar�_normalizationrrrr��	distutilsrr&rBrXrr�r,r2r;rIr^r_r`r$r$r$r%�<module>sB



�

#