
    nj                        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KJ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S jrSrSS jrSS jrg)z
Wheel command-line utility.
    )annotationsN)ArgumentTypeError   )
WheelErrorc                J    SSK J n  U" U R                  U R                  5        g )N   )unpack)r	   	wheelfiledest)argsr	   s     T/var/www/html/pdf-tiff/venv/lib/python3.13/site-packages/wheel/_commands/__init__.pyunpack_fr      s    
4>>499%    c                v    SSK J n  U" U R                  U R                  U R                  U R                  5        g )Nr   )pack)r   	directorydest_dirbuild_numberlocal_version)r   r   s     r   pack_fr      s'    (9(94;M;MNr   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_fr,   !   s.    
 ZZ
E d r   c                    SSK J n   U" U R                  U R                  5        g ! [         a  n[	        [        U5      5      UeS nAff = f)Nr   )info)r.   r
   r   FileNotFoundErrorr   str)r   r.   es      r   info_fr2   4   s=    (T^^T\\* (Q a'(s   & 
A
AA
c                ,    SSK Jn  [        SU 35        g )Nr   )__version__zwheel ) r4   r)   )r   r4   s     r   	version_fr6   =   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;   C   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                   ^ [         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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,S0S.9  UR	                  S1S,S2S.9  UR	                  S3[        S4S5S69  UR                  [        S9  U R                  S7S8S9nUR	                  S
S9S9  UR	                  SS S!S:S*9  UR                  [        S9  U R                  S;S<S9nUR                  [         S9  U R                  S=S>S9nUR                  U4S? 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))r@   r>   z--build-numberz"Build tag to use in the wheel namez--local-versionz*Local version identifier to add or replacer   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)rE   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)typerH   r>   r.   z#Show information about a wheel filez"Wheel file to show information forzShow detailed file listing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;   r,   r2   r6   )	sunpack_parserrepack_parserconvert_parsertags_parserinfo_parserversion_parserhelp_parserrN   s	           @r   parserrc   U   s   !A	j)ALLL?M$4c   {>H-LLnL=M{1WXA	   C    L   F+\\)2S\TNs9KL>	    T,GY/,,9y  K WC6RSG  
 ,K   [%>UV%.I   ?T   &),,v,Q,RK[/STT,5Q   &)\\)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)NrA   r   )filer   )	rc   
parse_argshasattrrM   rA   r   r)   sysstderr)rN   r   r1   s      r   mainrj      sc    A<<>D4  	 	&IIdO 	&!#**%	&s   A 
A<A77A<)r   zargparse.NamespacereturnNone)r:   r0   rk   r0   )rk   zargparse.ArgumentParser)rk   int)__doc__
__future__r   rQ   rW   rh   r   r
   r   r   r   r   r,   r2   r6   r;   rZ   rc   rj    r   r   <module>rq      sU    #  	 
 & "&O5&("	HVr   