
    m&ph2                        S r SSKJr  SSKrSSKrSSKrSSKJr   " S S\5      rSS jr	SS jr
SS	 jrSS
 jrSS jrSS jrSrS rS rg)z
Wheel command-line utility.
    )annotationsN)ArgumentTypeErrorc                      \ rS rSrSrg)
WheelError    N)__name__
__module____qualname____firstlineno____static_attributes__r       E/var/www/html/venv/lib/python3.13/site-packages/wheel/cli/__init__.pyr   r      s    r   r   c                J    SSK J n  U" U R                  U R                  5        g )N   )unpack)r   	wheelfiledest)argsr   s     r   unpack_fr      s    
4>>499%r   c                `    SSK J n  U" U R                  U R                  U R                  5        g )Nr   )pack)r   	directorydest_dirbuild_number)r   r   s     r   pack_fr      s    (9(9:r   c                `    SSK J n  U" U R                  U R                  U R                  5        g )Nr   )convert)r   filesr   verbose)r   r   s     r   	convert_fr!      s     DJJt||4r   c                j   ^ ^ SSK J m  U U4S jT R                   5       nU H  n[        U5        M     g )Nr   )tagsc           	   3     >#    U  HD  nT" UTR                   TR                  TR                  TR                  TR                  5      v   MF     g 7fN)
python_tagabi_tagplatform_tagbuildremove).0wheelr   r#   s     r   	<genexpr>tags_f.<locals>.<genexpr>&   sN      
  E 	OOLLJJKK	
 	
  s   AA)r#   r,   print)r   namesnamer#   s   `  @r   tags_fr2   #   s.    
 ZZ
E d r   c                ,    SSK Jn  [        SU 35        g )N   )__version__zwheel ) r5   r/   )r   r5   s     r   	version_fr7   6   s    	F;-
 !r   c                |    U (       a#  U S   R                  5       (       d  [        S5      eSU ;   a  [        S5      eU $ )Nr   z!build tag must begin with a digit-z$invalid character ('-') in build tag)isdigitr   )	build_tags    r   parse_build_tagr<   <   s=    1--// CDD			 FGGr   ay  Make 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                 D  ^ [         R                  " 5       mTR                  SS9n U R                  SSS9nUR	                  SSSSS	9  UR	                  S
SS9  UR                  [        S9  U R                  SSS9nUR	                  SSS9  UR	                  SS[        R                  R                  SS9  UR	                  SSS9  UR                  [        S9  U R                  SSS9nUR	                  SSSS9  UR	                  SS[        R                  R                  SS9  UR	                  SSSS 9  UR                  [        S9  U R                  S!S"[        S#9nUR	                  S$SS%S9  UR	                  S&SS'S(9  UR	                  S)S*S+S,9  UR	                  S-S*S.S,9  UR	                  S/S*S0S,9  UR	                  S1[        S2S3S49  UR                  [        S9  U R                  S5S6S9nUR                  [        S9  U R                  S7S8S9nUR                  U4S9 jS9  T$ ):Ncommands)helpr   zUnpack wheelz--destz-dzDestination directory.)r?   defaultr   z
Wheel file)funcr   zRepack wheelr   z$Root directory of the unpacked wheelz
--dest-dirz2Directory to store the wheel (default %(default)s))rA   r?   z--build-numberz"Build tag to use in the wheel namer   zConvert egg or wininst to wheelr   *zFiles 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,   zExisting wheel(s) to retagz--removez8Remove the original files, keeping only the renamed ones)rF   r?   z--python-tagTAGzSpecify an interpreter tag(s))metavarr?   z	--abi-tagzSpecify an ABI tag(s)z--platform-tagzSpecify a platform tag(s)z--buildBUILDzSpecify a build tag)typerI   r?   versionzPrint version and exitr?   zShow this helpc                $   > TR                  5       $ r%   )
print_help)r   ps    r   <lambda>parser.<locals>.<lambda>   s    q||~r   )argparseArgumentParseradd_subparsers
add_parseradd_argumentset_defaultsr   ospathcurdirr   r!   	TAGS_HELPr<   r2   r7   )sunpack_parserrepack_parserconvert_parsertags_parserversion_parserhelp_parserrO   s          @r   parserrc   N   s   !A	j)ALLL?M$4c   {>H-LLnL=M{1WXA	   C   F+\\)2S\TNs9KL>	    T,GY/,,9y  K WC6RSG  
 ,K   [%>UV%.I   ?T   &)\\)2J\KNY/,,v,<,=K"=>Hr   c                     [        5       n U R                  5       n[        US5      (       d  U R                  5         g UR	                  U5        g! [
         a"  n[        U[        R                  S9   S nAgS nAff = f)NrB   r   )filer   )	rc   
parse_argshasattrrN   rB   r   r/   sysstderr)rO   r   es      r   mainrk      sc    A<<>D4  	 	&IIdO 	&!#**%	&s   A 
A<A77A<)r   zargparse.NamespacereturnNone)r;   strrl   rn   )__doc__
__future__r   rR   rX   rh   r   	Exceptionr   r   r   r!   r2   r7   r<   r[   rc   rk   r   r   r   <module>rr      sW    #  	 
 &	 	&;5&"	>Br   