Your IP : 216.73.216.213


Current Path : /opt/alt/python311/lib/python3.11/site-packages/wheel/cli/__pycache__/
Upload File :
Current File : //opt/alt/python311/lib/python3.11/site-packages/wheel/cli/__pycache__/pack.cpython-311.pyc

�

��a����ddlmZddlZddlZddlZddlmZddlm	Z	ej
d��Zej
d��Zd�Z
dS)�)�print_functionN)�
WheelError)�	WheelFilez6^(?P<namever>(?P<name>.+?)-(?P<ver>\d.*?))\.dist-info$sBuild: (\d\w*)$c����fd�tj���D��}t|��dkr"td�������|s"td�������|d}t
�|���d��}d}tj�	�|d��}t|��5}g}	|D]�}
|
�d	��rA|	�|
�
d
��d������X|
�d��r-|
�
d
��d���}��|	s"td�|�����	ddd��n#1swxYwY|�|n|}|��|r|d
|zz
}||kr�|rd|z�d��nd}t|d��5}|���}t"�||��ds||z
}|���|�|��ddd��n#1swxYwYt+d�|	D����}
t+d�|	D����}t+d�|	D����}d
�	d�	|
��d�	|��d�	|��g��}tj�	|d�||����}t-|d��5}t/d�|��d���t0j���|����ddd��n#1swxYwYt/d��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)
    c����g|][}tj�tj��|�����?t�|���Y|��\S�)�os�path�isdir�join�DIST_INFO_RE�match)�.0�fn�	directorys  ��A/opt/alt/python311/lib/python3.11/site-packages/wheel/cli/pack.py�
<listcomp>zpack.<locals>.<listcomp>sj���`�`�`�R�����r�w�|�|�I�r�'B�'B�C�C�`�HT�HZ�HZ�[]�H^�H^�`�b�`�`�`��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
�asciirzrb+c�D�h|]}|�d��d��S)rr��split�r�tags  r�	<setcomp>zpack.<locals>.<setcomp>Cs'��6�6�6�#�C�I�I�c�N�N�1�%�6�6�6rc�D�h|]}|�d��d��S)rrrrs  rr zpack.<locals>.<setcomp>Ds'��8�8�8�C�c�i�i��n�n�Q�'�8�8�8rc�D�h|]}|�d��d��S)r�rrs  rr zpack.<locals>.<setcomp>Es'��:�:�:�c��	�	�#���q�)�:�:�:r�.z	{}-{}.whl�wzRepacking wheel as {}...�)�end�OK)r	�listdir�lenr�formatr
r�groupr
r�open�
startswith�appendr�rstrip�encode�read�BUILD_NUM_RE�subn�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�impls�abivers�	platforms�tagline�
wheel_path�wfs`                  r�packrOs����`�`�`�`�2�:�i�#8�#8�`�`�`�N�
�>���Q����F�M�M�i�X�X�Y�Y�Y�
�T��@�G�G�	�R�R�S�S�S�#�1�%�M��%�%�m�4�4�:�:�9�E�E�L�!���g�l�l�9�m�W�E�E�O�	
�o�	�	�
5�!����	D�	D�D����w�'�'�
D����D�J�J�s�O�O�A�.�5�5�7�7�8�8�8�8�����+�+�
D�(,�
�
�3����(:�(A�(A�(C�(C�%���	5��b�$�f�]�3�3�5�5�
5�	5�
5�
5�
5�
5�
5�
5�
5�
5�
5�
5�
5����
5�
5�
5�
5�$0�#;�<�<�AV�L����	/��C�,�.�.�L��0�0�0�NZ�c�?�\�9�A�A�'�J�J�J�`c�K��o�u�-�-�
,��%&�V�V�X�X�"�#�(�(��6H�I�I�!�L�6�&�+�5�&��
�
�������*�+�+�+�

,�
,�
,�
,�
,�
,�
,�
,�
,�
,�
,����
,�
,�
,�
,�
�6�6��6�6�6�7�7�E��8�8�4�8�8�8�9�9�G��:�:�T�:�:�:�;�;�I��h�h����������'�):�):�C�H�H�Y�<O�<O�P�Q�Q�G�����h��(:�(:�<��(Q�(Q�R�R�J�	�:�s�	#�	#�"�r�
�(�/�/�
�;�;��D�D�D�D��
������
���y�!�!�!�"�"�"�"�"�"�"�"�"�"�"����"�"�"�"�

�$�K�K�K�K�Ks9�"CF3�3F7�:F7�A$I2�2I6�9I6�AO�O�O)�
__future__r�os.pathr	�rer9�	wheel.clir�wheel.wheelfiler�compiler
r3rOrrr�<module>rVs���%�%�%�%�%�%�����	�	�	�	�
�
�
�
� � � � � � �%�%�%�%�%�%��r�z�S�T�T���r�z�-�.�.��A�A�A�A�Ar