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/cli/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

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

c�a%�@s�ddlZddlZddlZddlZddlZddlZddlmZddl	m
Z
ddlmZddlm
Z
ddlmZmZe�d	ej�ZGd
d�de�Zdd
�Zdd�Zdd�Zdd�ZdS)�N)�dist)�iglob�)�bdist_wheel)�	WheelFile�)�
WheelError�require_pkgresourcesz]
    (?P<name>.+?)-(?P<ver>.+?)
    (-(?P<pyver>py\d\.\d+)
     (-(?P<arch>.+?))?
    )?.egg$c@seZdZdZdZdd�ZdS)�_bdist_wheel_tagFNcCs |jr|jdur|jSt�|�S)N)�full_tag_supplied�full_tagr�get_tag)�self�r�3/usr/lib/python3/dist-packages/wheel/cli/convert.pyr
s
z_bdist_wheel_tag.get_tag)�__name__�
__module__�__qualname__rrr
rrrrr
sr
cCs$tj�|�}t�|�}|std�|���|��}tj	dd�}tj�
|�r?t�|��
}|�
|�Wd�n1s9wYn't�|�D]!}tj�||�}tj�
|�rZt�||�qDt�|tj�||��qD|d}	|	rv|	�dd�}	|d<|dp{d�dd	��d
d	�}
|
dkr�d|	dd�nd
}|ddu}|r�tt���}
ntt���}
||
_|	|
_d|
_|dp�d|
_|s�d|
_|	||
f|
_tj�|djdi|���}|
�tj�|d�|�|
j|dd�dj||
fi|��}t tj�||�d��
}|�!|�Wd�n	1�swYt�"|�dS)NzInvalid egg file name: {}�_e2w��suffix�pyver�.��arch�any�_�-�cpr�noneTz{name}-{ver}.dist-infozEGG-INFO�	egg2wheel��	generatorz{name}-{ver}-{pyver}-{}-{}.whl�wr)#�os�path�basename�egg_info_re�matchr�format�	groupdict�tempfile�mkdtemp�isfile�zipfile�ZipFile�
extractall�listdir�join�shutil�copy2�copytree�replacerr�Distributionr
�root_is_pure�
python_tag�plat_name_supplied�	plat_namerr�egg2dist�write_wheelfiler�write_files�rmtree)�egg_path�dest_dir�filenamer(�egg_info�dir�egg�pth�srcrr�abi�root_is_purelib�bw�
dist_info_dir�
wheel_name�wfrrrr %sP
���r c
Cs�d}|rt�|�}|std|f��|�d�\}}}|s#td|f��|dd�}|�d�\}}}|rA|�d�rA|}|�dd�}nd	}|�d�\}}}	|sTtd|f��|r`|�d
�}|�d�}|||	|d�S)
atExtract metadata from filenames.

    Extracts the 4 metadataitems needed (name, version, pyversion, arch) from
    the installer filename and the name of the egg-info directory embedded in
    the zipfile (if any).

    The egginfo filename has the format::

        name-ver(-pyver)(-arch).egg-info

    The installer filename has the format::

        name-ver.arch(-pyver).exe

    Some things to note:

    1. The installer filename is not definitive. An installer can be renamed
       and work perfectly well as an installer. So more reliable data should
       be used whenever possible.
    2. The egg-info data should be preferred for the name and version, because
       these come straight from the distutils metadata, and are mandatory.
    3. The pyver from the egg-info data should be ignored, as it is
       constructed from the version of Python used to build the installer,
       which is irrelevant - the installer filename is correct here (even to
       the point that when it's not there, any version is implied).
    4. The architecture must be taken from the installer filename, as it is
       not included in the egg-info data.
    5. Architecture-neutral installers still have an architecture because the
       installer format itself (being executable) is architecture-specific. We
       should therefore ignore the architecture if the content is pure-python.
    Nz!Egg info filename %s is not validrz"Installer filename %s is not valid����pyrrzpy2.py3�name�ver)rPrQrr)r'�search�
ValueError�	partition�
rpartition�
startswithr6�group)
�wininfo_name�egginfo_name�egginfo�w_name�sep�rest�rest2�w_pyver�w_ver�w_archrrr�parse_wininst_info[s*!


rbcCs�t�|���}d}|��D]
}d|vr|}nqttj�|�|�}d}|��D]}|j�	d�r2d}nq&|r:ddi}nddi}d|}	d	|	}
g}d}|��D]Q}|j�
d
d�\}}
|��}|�|d�}|duro|
|��d
}|j}||
}||_|j
|=||j
|<|r�|�|�|s�|�d�r�|}qNd|vr�|�d
�\}}}qNtjd
d�}|�||�Wd�n1s�wYd}|d}|dp�d�dd��dd�}|r�d}|dkr�|�dd�}d�|	|||f�}|r�tt���}ntt���}||_||_d|_|d�pd|_|�sd|_|||f|_tj�|d|	�}|� tj�||�|�|j!|dd�tj�||�}t"|d��
}|�#|�Wd�n	1�sJwYt$�%|�dS)Nz	.egg-infoT�PLATLIBF�purelibr�platlibz%(name)s-%(ver)sz%s.data/�/rz
.egg-info/�_b2wrrrrrrrrrOrz%s.dist-info�
wininst2wheelr!r#)&r.r/�namelistrbr$r%r&�infolistrBrV�split�lower�get�
NameToInfo�append�endswithrUr+r,r0r6r2rrr7r
r8r9r:r;rrr<r=rr>r3r?)r%rA�bdwrYrB�inforI�zipinfo�paths�	dist_info�datadir�members�keyr&�basepath�oldname�newnamer\rrDrHrrrLrJrK�
wheel_pathrMrrrrh�s���



��3�rhcCsttd�|D]1}t|�D]*}tj�|�ddkrt}nt}|r+td�|��t	j
��|||�|r6td�qqdS)Nz
wheel convertrz.eggz{}... �OK)r	rr$r%�splitextr rh�printr)�sys�stdout�flush)�filesrA�verbose�pat�	installer�convrrr�convert�s

���r�)�os.pathr$�rer3r�r+r.�	distutilsr�globrr�	wheelfilerrrr	�compile�VERBOSEr'r
r rbrhr�rrrr�<module>s&�6GZ

https://t.me/RX1948 - 2025