HEX
Server: Apache
System: Linux infong-uk86 4.4.400-icpu-106 #2 SMP Mon Sep 15 08:23:40 UTC 2025 x86_64
User: u44115835 (4976590)
PHP: 8.4.17
Disabled: NONE
Upload Files
File: //kunden/lib/python3/dist-packages/wheel/cli/__pycache__/pack.cpython-39.pyc
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*)$csv�fdd�t���D�}t|�dkr4td�����n|sFtd�����|d}t�|��d�}d}tj�	�|d	�}t
|��p}g}	|D]D}
|
�d
�r�|	�|
�
d�d���q�|
�d�r�|
�
d�d��}q�|	s�td
�|���Wd�n1s�0Y|du�r|n|}|du�r�|�r(|d|7}||k�r�|�rFd|�d�nd}t
|d��D}|��}t�||�d�sx||7}|��|�|�Wd�n1�s�0Ytdd�|	D��}
tdd�|	D��}tdd�|	D��}d�	d�	|
�d�	|�d�	|�g�}tj�	|d�||��}t|d��6}td�|�dd�tj��|���Wd�n1�s`0Ytd�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 {}rZnameverNZWHEELzTag: � zBuild: zCNo tags present in {}/WHEEL; cannot determine target wheel filename�-zBuild: %s
�ascii�zrb+cSsh|]}|�d�d�qS)rr��split�r�tagrrr�	<setcomp>Crzpack.<locals>.<setcomp>cSsh|]}|�d�d�qS)rrrrrrrrDrcSsh|]}|�d�d�qS)r�rrrrrrEr�.z	{}-{}.whl�wzRepacking wheel as {}...�)�endZOK)r�listdir�lenr�formatr
r�grouprr	�open�
startswith�appendr�rstrip�encode�read�BUILD_NUM_RE�subn�truncate�write�sortedr�print�sys�stdout�flushZwrite_files)rZdest_dirZbuild_numberZdist_info_dirsZ
dist_info_dirZname_versionZexisting_build_numberZwheel_file_path�fZtags�lineZreplacementZwheel_file_contentZimplsZabiversZ	platformsZtaglineZ
wheel_pathZwfrrr�packsT



�$

*"
*r6)Z
__future__r�os.pathr�rer1Z	wheel.clirZwheel.wheelfiler�compiler
r+r6rrrr�<module>s