HEX
Server: Apache
System: Linux server2.voipitup.com.au 4.18.0-553.104.1.lve.el8.x86_64 #1 SMP Tue Feb 10 20:07:30 UTC 2026 x86_64
User: posscale (1027)
PHP: 8.2.29
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //opt/saltstack/salt/lib/python3.10/site-packages/wheel/cli/__pycache__/__init__.cpython-310.pyc
o

�N�g2�@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�F/opt/saltstack/salt/lib/python3.10/site-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_dirZ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)Z
python_tagZabi_tagZ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_f6rr-�	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)r.rrr	�parse_build_tag<s
r2ayMake 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);NZcommands)�helprzUnpack wheelz--destz-dzDestination directory�.)r3�defaultrz
Wheel file)�funcrzRepack wheelrz$Root directory of the unpacked wheelz
--dest-dirz2Directory to store the wheel (default %(default)s))r5r3z--build-numberz"Build tag to use in the wheel namerzConvert egg or wininst to wheelr�*zFiles to convert)�nargsr3z/Directory to store wheels (default %(default)s)z	--verbosez-v�
store_true)�actionrz"Add or replace the tags on a wheel)r3�descriptionr#zExisting wheel(s) to retagz--removez8Remove the original files, keeping only the renamed ones)r:r3z--python-tagZTAGzSpecify an interpreter tag(s))�metavarr3z	--abi-tagzSpecify an ABI tag(s)z--platform-tagzSpecify a platform tag(s)z--buildZBUILDzSpecify a build tag)�typer<r3�versionzPrint version and exitr3zShow 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_HELPr2r)r-)�sZ
unpack_parserZ
repack_parserZconvert_parserZtags_parserZversion_parserZhelp_parserrr@r	�parserNsn���������rNc
Csjt�}|��}t|d�s|��dSz|�|�WdSty4}zt|tjd�WYd}~dSd}~ww)Nr6r)�filer)	rN�
parse_args�hasattrr?r6rr&�sys�stderr)rAr
�errr	�main�s
�
��rU)r
rrr
)r.r/rr/)�__doc__Z
__future__rrCrIrRr�	Exceptionrrrrr)r-r2rLrNrUrrrr	�<module>s 





		A