https://t.me/RX1948
Server : Apache
System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
User : dh_edsupp ( 6597262)
PHP Version : 8.2.26
Disable Function : NONE
Directory :  /lib/python3/dist-packages/wheel/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/wheel/__pycache__/bdist_wheel.cpython-310.pyc
o

c�a�J�@srdZddlZddlZddlZddlZddlZddlZddlZddlm	Z	ddl
mZddlmZ
ddlmZddlmZddlmZdd	lmZdd
lmZmZddlZddlmZdd
lmZddlmZddlm Z ddl!m"Z"ddl#m$Z%ej&dkr�ddl'm(Z)nddl'm)Z)ej*Z*ej+Z+dZ,dd�Z-dd�Z.d'dd�Z/dd�Z0dd �Z1d!d"�Z2d#d$�Z3Gd%d&�d&e�Z4dS)(zI
Create a wheel (.whl) distribution.

A wheel is a built archive format.
�N)�OrderedDict)�Command)�log)�BytesIO)�iglob)�rmtree)�get_config_var)�ZIP_DEFLATED�
ZIP_STORED�)�write_pkg_info)�calculate_macosx_platform_tag)�pkginfo_to_metadata)�tags)�	WheelFile)�__version__��)�	Generator)�BytesGeneratorzcp3\dcCsd�tjd�S)Nzpy{}r)�format�sys�version_info�rr�3/usr/lib/python3/dist-packages/wheel/bdist_wheel.py�
python_tag+�rcCs@tj��}|�d�r|durt||�}|dkrtjdkrd}|S)z0Return our platform name 'win32', 'linux_x86_64'�macosxN�linux_x86_64���
linux_i686)�	distutils�util�get_platform�
startswithr
r�maxsize)�archive_root�resultrrrr#/s

r#TcCs4t|�}|dur|rt�d�|�td�|S||kS)zfUse a fallback value for determining SOABI flags if the needed config
    var is unset or unavailable.Nz?Config variable '{0}' is unset, Python ABI tag may be incorrect�)r�warnings�warnr�RuntimeWarning)�var�fallback�expectedr*�valrrr�get_flag;s
�r0cCsNtd�}t��}|sd|dvrdttd�rdd}d}d}tdttd�|dkd�r'd	}td
|dk|dko4tjdkd�r>tjdkr>d}td
tjdkd|dkoMtjdkd�rWtjdkrWd}d|t��|||f}|S|rv|�	d�rvd|�
d�d}|S|r�|�	d�r�d�|�
d�dd��}|�dd��dd�}|S|r�|�dd��dd�}|Sd}|S)zXReturn the ABI tag based on SOABI (if available) or emulate SOABI
    (CPython 2, PyPy).�SOABI)�cp�pp�
maxunicode��Py_DEBUG�gettotalrefcountr2)r*�d�
WITH_PYMALLOC)r��m�Py_UNICODE_SIZEi���)rr)r.r*�uz
%s%s%s%s%szcpython-�-rzpypy-Nr(�.�_)
rr�interpreter_name�hasattrrr0rr4�interpreter_versionr$�split�join�replace)�soabi�implr8r;r>�abirrr�get_abi_tagGsP��
�
�	���rKcC�t|��dd�S�Nr?rA)�	safe_namerG)�namerrr�
safer_nameorrPcCrLrM)�safe_versionrG)�versionrrr�
safer_versionsrrScCs*tt|d��t�|tj�||�dS)Nr)�print�str�os�chmod�stat�S_IWRITE)�func�path�excinforrr�remove_readonlywsr]c@s�eZdZdZedefdefg�Zdddded�fd	d
ddd
ddddd�	d�
e��fddde�fddg
Zgd�Z
dd�Zdd�Zedd��Zdd�Zd d!�Zd"ed#fd$d%�Zd&d'�Zed(d)��Zd*d+�ZdS),�bdist_wheelzcreate a wheel distribution�stored�deflated)z
bdist-dir=�bz1temporary directory for creating the distributionz
plat-name=�pz;platform name to embed in generated filenames (default: %s)N)�	keep-temp�kzPkeep the pseudo-installation tree around after creating the distribution archive)z	dist-dir=r8z-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])�	universalNz'make a universal wheel (default: false)zcompression=z6zipfile compression (one of: {}) (default: 'deflated')z, zpython-tag=z7Python implementation compatibility tag (default: '%s'))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))rcrerfrhcCsxd|_d|_d|_d|_d|_d|_d|_d|_d|_d|_	d|_
d|_d|_d|_
d|_t�|_d|_d|_d|_dS)N�zipFr`)�	bdist_dir�data_dir�	plat_name�plat_tagr�	keep_temp�dist_dir�egginfo_dir�root_is_pure�
skip_buildrf�owner�grouprh�compressionr�build_number�py_limited_api�plat_name_supplied)�selfrrr�initialize_options�s&
zbdist_wheel.initialize_optionscCs0|jdur|�d�j}tj�|d�|_|jd|_|jdu|_	z	|j
|j|_Wnty7t
d�|j���wd}|jdgt||��R�|j��pO|j��|_|jrbt�t|j�sbt
dt��|j�d�}d|vr�t�d�|dd	��}|��d
vr�d|_|jdur�|jdd	�� �s�t
d��dSdS)
N�bdist�wheelz.datazUnsupported compression: {})rorlrrzpy-limited-api must match '%s'rhz=The [wheel] section is deprecated. Use [bdist_wheel] instead.r)�1�true�yesTz1Build tag (build-number) must start with a digit.)!rj�get_finalized_command�
bdist_baserVr[rF�wheel_dist_namerkrlrx�supported_compressionsru�KeyError�
ValueErrorr�set_undefined_optionsri�distribution�has_ext_modules�has_c_librariesrqrw�re�match�PY_LIMITED_API_PATTERN�get_option_dict�loggerr*�strip�lowerrhrv�isdigit)ryr��need_optionsr|r/rrr�finalize_options�s8
��
�
�zbdist_wheel.finalize_optionscCs8t|j���t|j���f}|jr||jf7}d�|�S)z4Return distribution full name with - replaced with _r?)rPr��get_namerS�get_versionrvrF)ry�
componentsrrrr��s�
zbdist_wheel.wheel_dist_namecs|jr|j�n#|jr
d�n|jr|j�d�s|j�nt|j���dvr*tjdkr*d�����	dd��	dd��|jrI|j
r?d	}n|j}|d
�f}|St�
�}t��}||}|jre||�d�re|j}d}ntt����}||�f}�fd
d�t��D�}||vs�Jd�|���|S)N�anyr)zlinux-x86_64rrr r?rAr@zpy2.py3�none�cp3�abi3csg|]	}|j|j�f�qSr)�interpreterrJ)�.0�t�rlrr�
<listcomp>s�z'bdist_wheel.get_tag.<locals>.<listcomp>z)would build wheel with unsupported tag {})rxrlrqr$r#rjrr%r�rGrhrrrBrDrwrUrK�sys_tagsr)ryrI�tag�	impl_name�impl_ver�abi_tag�supported_tagsrr�r�get_tag�s:

�

�zbdist_wheel.get_tagcCsX|�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�|��\}}}	d�|j|||	�}
|js�|j}ntj
�|j|�|j��}|�dd�d�t|j� ��t!|j�"���}tj
�|j|�}
|�#|j$|
�|�%|
�tj
�&|j'�s�t�(|j'�tj
�|j'|
d�}t)|d|j*��
}|�+|�Wd�n1s�wYt,|jdg��-ddjt.j/dd��|f�|j0�s(t�d|j�|j1�s*t2|jt3d�dSdSdS)N�
build_scripts�pythonT�	build_extF�build�install)�reinit_subcommands�install_scripts)�headers�scripts�data�purelib�platlib�install_r5�ntz..�install_purelib�install_platlibzinstalling to %sz{}-{}-{}-{}�install_egg_info)�targetrpz{}-{}.dist-infoz.whl�w�
dist_filesr^z{}.{}r(zremoving %s)�onerror)4�reinitialize_command�
executable�force�inplacerr�run_commandrj�root�compile�warn_dir�no_ep�setattrrVr[rFrkrO�normpath�install_libbase�install_librqr��infor�rr�rf�_ensure_relative�install_baser�rPr�r�rSr��egg2distrp�write_wheelfile�existsro�makedirsrru�write_files�getattr�appendrrrn�dry_runrr])ryr�r�r�r��key�basedir_observed�impl_tagr�rm�archive_basenamer&�distinfo_dirname�distinfo_dir�
wheel_path�wfrrr�run"s�


�
�
�

��
����zbdist_wheel.runz
bdist_wheel (�)cCs0ddlm}tjdkrt|t�s|�d�}|�}d|d<||d<t|j���|d<|j	dur3|j	|d	<|�
�\}}}|�d
�D]}|�d
�D]}	|�d
�D]}
d�||	|
f�|d<qMqFq?t
j�|d
�}t�d|�t�}t|dd��|�t|d��}
|
�|���dd��Wd�dS1s�wYdS)Nr)�Messagerzutf-8z1.0z
Wheel-VersionrzRoot-Is-Purelib�Buildr@r?�Tag�WHEELzcreating %s)�maxheaderlen�wbs
�
)�
email.messager�rr�
isinstancerU�encoderqr�rvr�rErFrVr[r�r�rr�flatten�open�write�getvaluerG)ry�wheelfile_base�	generatorr��msgr�r�rmrIrJ�plat�wheelfile_path�buffer�frrrr�vs.


��"�zbdist_wheel.write_wheelfilecCs6tj�|�\}}|dd�tjkr||dd�}|S)Nrr)rVr[�
splitdrive�sep)ryr[�driverrrr��szbdist_wheel._ensure_relativecCs�|j�d�}t�}tdd�|�dd�d��D��}d|vr-t�dt�|�	|dd�d|vr7d|vr7d	}|D]+}t
|�D]$}|�d
�rMt�
d|�q?||vrctj�|�rct�d||�|�	|�q?q9|S)
N�metadatacSsh|]}|�qSrr)r��optionrrr�	<setcomp>�s�z,bdist_wheel.license_paths.<locals>.<setcomp>�
license_files)r5r5r�license_filezEThe "license_file" option is deprecated. Use "license_files" instead.)zLICEN[CS]E*zCOPYING*zNOTICE*zAUTHORS*�~z4ignoring license file "%s" as it looks like a backupz/adding license file "%s" (matched pattern "%s"))r�r��set�sorted�getrEr)r*�DeprecationWarning�addr�endswithr��debugrVr[�isfiler�)ryr��files�patterns�patternr[rrr�
license_paths�s.��

��	zbdist_wheel.license_pathscCshdd�}||�tj�|�s<ddl}tj�tj�|�d�}|�|�}d|f}|r8tj�|d�}|d|f7}t|��tj�|�rO|}	t	||�}
t�
|�n>tj�|d�}	t	||	�}
tj||d	d
�d�tj�|d�}t
|d
��}|����}
Wd�n1s�wY|
s�||�ttj�|d�|
�|jD]}tj�|�}t�|tj�||��q�||�dS)z:Convert an .egg-info directory into a .dist-info directorycSsPtj�|�rtj�|�stj�|�rt�|�dStj�|�r&t�|�dSdS)z-Appropriately delete directory, file or link.N)rVr[r��islink�isdir�shutilr�unlink)rbrrr�adios�s
$�z#bdist_wheel.egg2dist.<locals>.adiosrNz
*.egg-infoz)Egg metadata expected at %s but not foundz- (%s found - possible misnamed archive file?)�PKG-INFOcSshd�S)N>�SOURCES.txt�not-zip-safe�requires.txtr
r)�x�yrrr�<lambda>�sz&bdist_wheel.egg2dist.<locals>.<lambda>)�ignorezdependency_links.txt�r�METADATA)rVr[r��globrF�dirname�basenamer�rr�mkdirr
�copytreer��readr�rr�copy)ry�egginfo_path�
distinfo_pathrr�pat�possible�err�alt�pkginfo_path�pkg_info�dependency_links_path�dependency_links_file�dependency_links�license_path�filenamerrrr��s>



��
zbdist_wheel.egg2dist)�__name__�
__module__�__qualname__�descriptionrr
r	r�r#rrFr�user_options�boolean_optionsrzr��propertyr�r�r��
wheel_versionr�r�rr�rrrrr^}sV�������($
0T
r^)TT)5�__doc__r!rVr
rXrr�r)�collectionsr�distutils.corerrr��iorrrr�	sysconfigr�zipfiler	r
�
pkg_resources�pkginfor�macosx_libfiler
r�r�vendored.packagingr�	wheelfilerr5rr2r�email.generatorrrrNrQr�rr#r0rKrPrSr]r^rrrr�<module>sJ

(

https://t.me/RX1948 - 2025