HEX
Server: LiteSpeed
System: Linux php-prod-1.spaceapp.ru 5.15.0-157-generic #167-Ubuntu SMP Wed Sep 17 21:35:53 UTC 2025 x86_64
User: sport3497 (1034)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: //usr/local/lib/python3.10/dist-packages/wheel/cli/__pycache__/__init__.cpython-310.pyc
o

��h2�@s�dZddlmZddlZddlZddlZddlmZGdd�de�Zddd�Z	dd
d�Z
ddd�Zddd�Zddd�Z
ddd�ZdZdd�Zdd�ZdS) z
Wheel command-line utility.
�)�annotationsN)�ArgumentTypeErrorc@seZdZdS)�
WheelErrorN)�__name__�
__module__�__qualname__�rr�=/usr/local/lib/python3.10/dist-packages/wheel/cli/__init__.pyr
sr�args�argparse.Namespace�return�NonecCsddlm}||j|j�dS)N�)�unpack)r�	wheelfile�dest)r
rrrr	�unpack_f�rcC�"ddlm}||j|j|j�dS)Nr)�pack)r�	directory�dest_dir�build_number)r
rrrr	�pack_f�rcCr)Nr)�convert)r�filesr�verbose)r
rrrr	�	convert_frrcs8ddlm���fdd��jD�}|D]}t|�qdS)Nr)�tagsc3s,�|]}�|�j�j�j�j�j�VqdS�N)�
python_tag�abi_tag�platform_tag�build�remove)�.0�wheel�r
rrr	�	<genexpr>&s�	��
�ztags_f.<locals>.<genexpr>)rr'�print)r
�names�namerr(r	�tags_f#s	�
�r-cCsddlm}td|���dS)N�)�__version__zwheel )�r/r*)r
r/rrr	�	version_f6rr1�	build_tag�strcCs,|r|d��std��d|vrtd��|S)Nrz!build tag must begin with a digit�-z$invalid character ('-') in build tag)�isdigitr)r2rrr	�parse_build_tag<s
r6ayMake 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.
cs�t����jdd�}|jddd�}|jddddd	�|jd
dd�|jtd�|jd
dd�}|jddd�|jddtjj	dd�|jddd�|jt
d�|jddd�}|jdddd�|jddtjj	dd�|jdddd �|jtd�|jd!d"td#�}|jd$dd%d�|jd&dd'd(�|jd)d*d+d,�|jd-d*d.d,�|jd/d*d0d,�|jd1t
d2d3d4�|jtd�|jd5d6d�}|jtd�|jd7d8d�}|j�fd9d:�d��S);N�commands)�helprzUnpack wheelz--destz-dzDestination directory�.)r8�defaultrz
Wheel file)�funcrzRepack wheelrz$Root directory of the unpacked wheelz
--dest-dirz2Directory to store the wheel (default %(default)s))r:r8z--build-numberz"Build tag to use in the wheel namerzConvert egg or wininst to wheelr�*zFiles to convert)�nargsr8z/Directory to store wheels (default %(default)s)z	--verbosez-v�
store_true)�actionrz"Add or replace the tags on a wheel)r8�descriptionr'zExisting wheel(s) to retagz--removez8Remove the original files, keeping only the renamed ones)r?r8z--python-tag�TAGzSpecify an interpreter tag(s))�metavarr8z	--abi-tagzSpecify an ABI tag(s)z--platform-tagzSpecify a platform tag(s)z--build�BUILDzSpecify a build tag)�typerBr8�versionzPrint version and exitr8zShow this helpcs���Sr )�
print_help)r
��prr	�<lambda>�szparser.<locals>.<lambda>)�argparse�ArgumentParser�add_subparsers�
add_parser�add_argument�set_defaultsr�os�path�curdirrr�	TAGS_HELPr6r-r1)�s�
unpack_parser�
repack_parser�convert_parser�tags_parser�version_parser�help_parserrrGr	�parserNsn���������r[c
Csjt�}|��}t|d�s|��dSz|�|�WdSty4}zt|tjd�WYd}~dSd}~ww)Nr;r)�filer)	r[�
parse_args�hasattrrFr;rr*�sys�stderr)rHr
�errr	�main�s
�
��rb)r
rrr
)r2r3rr3)�__doc__�
__future__rrJrPr_r�	Exceptionrrrrr-r1r6rSr[rbrrrr	�<module>s 





		A