Current File : //usr/lib/python3/dist-packages/wheel/cli/__pycache__/__init__.cpython-312.pyc
�

C�e����dZddlmZddlZddlZddlZddlmZGd�de�Zd�Z	d�Z
d	�Zd
�Zd�Z
dd�Zd
Zd�Zd�Zy)z
Wheel command-line utility.
�)�annotationsN)�ArgumentTypeErrorc��eZdZy)�
WheelErrorN)�__name__�
__module__�__qualname__���4/usr/lib/python3/dist-packages/wheel/cli/__init__.pyrr
s��rrc�J�ddlm}||j|j�y)N�)�unpack)r�	wheelfile�dest)�argsrs  r�unpack_frs���
�4�>�>�4�9�9�%rc�`�ddlm}||j|j|j�y)Nr)�pack)r�	directory�dest_dir�build_number)rrs  r�pack_frs�����������(9�(9�:rc�`�ddlm}||j|j|j�y)Nr)�convert)r�filesr�verbose)rrs  r�	convert_frs�� ��D�J�J��
�
�t�|�|�4rc�d���ddlm���fd��jD�}|D]
}t|��y)Nr)�tagsc	3��K�|]C}�|�j�j�j�j�j����Ey�w�N)�
python_tag�abi_tag�platform_tag�build�remove)�.0�wheelrr s  ��r�	<genexpr>ztags_f.<locals>.<genexpr>&sH�����

�
�	
���O�O��L�L�����J�J��K�K�
	
�

�s�A	A)r r)�print)r�names�namer s`  @r�tags_fr.#s3����

��Z�Z�

�E����
�d��rc�,�ddlm}td|z�y)N�)�__version__zwheel %s)�r1r+)rr1s  r�	version_fr36s���	�*�{�
"�#rc�d�|r|dj�std��d|vrtd��|S)Nrz!build tag must begin with a digit�-z$invalid character ('-') in build tag)�isdigitr)�	build_tags r�parse_build_tagr8<s:����1��-�-�/�� C�D�D�	�	�	�� F�G�G��rayMake a new wheel with given tags. Any tags unspecified will remain the same.
Starting the tags with a "+" will append to the existing tags. Starting with a
"-" will remove a tag (use --option=-TAG syntax). Multiple tags can be
separated by ".". The original file will remain unless --remove is given.  The
output filename(s) will be displayed on stdout for further processing.
c����tj���jd��}|jdd��}|j	dddd�	�|j	d
d��|jt��|jd
d��}|j	dd��|j	ddtjjd��|j	dd��|jt��|jdd��}|j	ddd��|j	ddtjjd��|j	ddd� �|jt��|jd!d"t�#�}|j	d$dd%��|j	d&dd'�(�|j	d)d*d+�,�|j	d-d*d.�,�|j	d/d*d0�,�|j	d1td2d3�4�|jt��|jd5d6��}|jt��|jd7d8��}|j�fd9����S):N�commands)�helprzUnpack wheelz--destz-dzDestination directory�.)r;�defaultrz
Wheel file)�funcrzRepack wheelrz$Root directory of the unpacked wheelz
--dest-dirz2Directory to store the wheel (default %(default)s))r=r;z--build-numberz"Build tag to use in the wheel namerzConvert egg or wininst to wheelr�*zFiles to convert)�nargsr;z/Directory to store wheels (default %(default)s)z	--verbosez-v�
store_true)�actionr z"Add or replace the tags on a wheel)r;�descriptionr)zExisting wheel(s) to retagz--removez8Remove the original files, keeping only the renamed ones)rBr;z--python-tag�TAGzSpecify an interpreter tag(s))�metavarr;z	--abi-tagzSpecify an ABI tag(s)z--platform-tagzSpecify a platform tag(s)z--build�BUILDzSpecify a build tag)�typerEr;�versionzPrint version and exitr;zShow this helpc�$���j�Sr")�
print_help)r�ps �r�<lambda>zparser.<locals>.<lambda>�s
���q�|�|�~�r)�argparse�ArgumentParser�add_subparsers�
add_parser�add_argument�set_defaultsr�os�path�curdirrr�	TAGS_HELPr8r.r3)�s�
unpack_parser�
repack_parser�convert_parser�tags_parser�version_parser�help_parserrKs       @r�parserr^Ns�������!�A�	���j��)�A��L�L���L�?�M�����$�4�c������{���>����H��-��L�L��n�L�=�M����{�1W��X�����������
A�	������C������F��+��\�\�)�2S�\�T�N�����s�9K��L�����������
>�	 ������T�,��G����Y��/��,�,��9�y���K����W�C�6R��S������
G���
�����,K������[�%�>U��V�����%�.I���������?T������&��)��\�\�)�2J�\�K�N����Y��/��,�,�v�,<�,�=�K����"=��>��Hrc��t�}|j�}t|d�s|j�y	|j	|�y#t
$r%}t
|tj��Yd}~yd}~wwxYw)Nr>r)�filer)	r^�
parse_args�hasattrrJr>rr+�sys�stderr)rKr�es   r�mainrf�sc����A��<�<�>�D��4�� �	����
�
	&��I�I�d�O����	&��!�#�*�*�%�%���	&�s�A�	A9�A4�4A9)r7�str�returnrg)�__doc__�
__future__rrMrSrcr�	Exceptionrrrrr.r3r8rVr^rfr
rr�<module>rlsW���#��	�
�&�	��	�&�;�5��&$��
�	�>
�B
r