HEX
Server: Apache
System: Linux zacp120.webway.host 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP Thu Apr 17 19:10:24 UTC 2025 x86_64
User: govancoz (1003)
PHP: 8.3.26
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: //usr/local/lib/python3.7/site-packages/wheel/cli/__pycache__/__init__.cpython-37.pyc
B

O��g��@s�dZddlmZddlZddlZddlZddlmZGdd�de�Zdd�Z	d	d
�Z
dd�Zd
d�Zdd�Z
ddd�dd�ZdZdd�Zdd�ZdS)z
Wheel command-line utility.
�)�annotationsN)�ArgumentTypeErrorc@seZdZdS)�
WheelErrorN)�__name__�
__module__�__qualname__�rr�6/tmp/pip-unpacked-wheel-f1gdtpe6/wheel/cli/__init__.pyr
srcCsddlm}||j|j�dS)N�)�unpack)r�	wheelfile�dest)�argsrrrr	�unpack_fsrcCs"ddlm}||j|j|j�dS)Nr
)�pack)r�	directory�dest_dir�build_number)rrrrr	�pack_fsrcCs"ddlm}||j|j|j�dS)Nr
)�convert)r�filesr�verbose)rrrrr	�	convert_fsrcs<ddlm���fdd��jD�}x|D]}t|�q(WdS)Nr
)�tagsc3s*|]"}�|�j�j�j�j�j�VqdS)N)Z
python_tagZabi_tagZplatform_tag�build�remove)�.0�wheel)rrrr	�	<genexpr>'sztags_f.<locals>.<genexpr>)rr�print)r�names�namer)rrr	�tags_f#s


r"cCsddlm}td|�dS)N�)�__version__zwheel %s)�r$r)rr$rrr	�	version_f6sr&�str)�	build_tag�returncCs.|r|d��std��nd|kr*td��|S)Nrz!build tag must begin with a digit�-z$invalid character ('-') in build tag)�isdigitr)r(rrr	�parse_build_tag<s

r,ayMake 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�.)r.�defaultrz
Wheel file)�funcrzRepack wheelrz$Root directory of the unpacked wheelz
--dest-dirz2Directory to store the wheel (default %(default)s))r0r.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)�actionrz"Add or replace the tags on a wheel)r.�descriptionrzExisting wheel(s) to retagz--removez8Remove the original files, keeping only the renamed ones)r5r.z--python-tagZTAGzSpecify 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)�typer7r.�versionzPrint version and exitr.zShow this helpcs���S)N)�
print_help)r)�prr	�<lambda>��zparser.<locals>.<lambda>)�argparse�ArgumentParser�add_subparsers�
add_parser�add_argument�set_defaultsr�os�path�curdirrr�	TAGS_HELPr,r"r&)�sZ
unpack_parserZ
repack_parserZconvert_parserZtags_parserZversion_parserZhelp_parserr)r<r	�parserNs\
rJc
Csft�}|��}t|d�s"|��n@y|�|�dStk
r`}zt|tjd�Wdd}~XYnXdS)Nr1r)�filer
)	rJ�
parse_args�hasattrr;r1rr�sys�stderr)r<r�errr	�main�s


 rQ)�__doc__�
__future__rr?rErNr�	Exceptionrrrrr"r&r,rHrJrQrrrr	�<module>sA