
    vKg                         S r SSKrSSKrSSKJr  SSKJr  SSKJr  SSK	J
r
  SSKJr  S	S
KJr  SSKJr  SSKJr   " S S\5      rg)zD
Create a dist_info directory
As defined in the wheel specification
    N)contextmanager)Path)cast   )_normalization)rmdir   )egg_info)log)Commandc                   j    \ rS rSrSrSr/ SQrSS/rSS0rS r	SS
 jr
\S\S\4S j5       rSS jrSrg	)	dist_info   z{
This command is private and reserved for internal use of setuptools,
users should rely on ``setuptools.build_meta`` APIs.
z@DO NOT CALL DIRECTLY, INTERNAL ONLY: create .dist-info directory))zoutput-dir=ozYdirectory inside of which the .dist-info will becreated [default: top of the source tree])tag-datedz0Add date stamp (e.g. 20050528) to version number)z
tag-build=bz-Specify explicit tag to add to version number)no-dateDz"Don't include date stamp [default])keep-egg-infoNz,*TRANSITIONAL* will be removed in the futurer   r   r   c                 X    S U l         S U l        S U l        S U l        S U l        SU l        g )NF)
output_dirnamedist_info_dirtag_date	tag_buildkeep_egg_info)selfs    \/var/www/highfloat_scraper/venv/lib/python3.13/site-packages/setuptools/command/dist_info.pyinitialize_optionsdist_info.initialize_options,   s.    	!"    Nc                 6   U R                   nUR                  =(       d    [        R                  n[	        U R
                  =(       d    U5      U l        [        [        U R                  S5      5      n[        U R
                  5      Ul
        U R                  (       a  U R                  Ul        OUR                  U l        U R                  (       a  U R                  Ul        OUR                  U l        UR                  5         X0l        [        R                   " UR#                  5       5      n[        R$                  " UR'                  5       5      nU SU 3U l        [        R*                  R-                  U R
                  U R(                   S35      U l        g )Nr
   -z
.dist-info)distributionsrc_rootoscurdirr   r   r   egg_info_clsreinitialize_commandstregg_baser   r   finalize_optionsr
   r   
safer_nameget_namesafer_best_effort_versionget_versionr   pathjoinr   )r   distproject_dirr
   r   versions         r   r-   dist_info.finalize_options4   s     mm0ryyt=+>d&?&?
&KL0== $H$--DM>>!%H%//DN!!# ((9 ::4;K;K;MNfAgY'	WW\\$//dii[
;STr"   dir_pathrequires_bkpc              #     #    U(       aK  U S3n[        USS9  [        R                  " XSSS9   S v   [        USS9  [        R                  " X15        g S v   g ! [        USS9  [        R                  " X15        f = f7f)Nz.__bkp__T)ignore_errors)dirs_exist_oksymlinks)_rmshutilcopytreemove)r   r8   r9   bkp_names       r   _maybe_bkp_dirdist_info._maybe_bkp_dirN   sh     "8,H-OOHdTR0HD1H/ HD1H/s   -A?A &A?"A<<A?c                 H   U R                   R                  SSS9  U R                  R                  5         U R                  R                  n[        R
                  R                  U5      (       d   S5       e[        R                  " SR                  [        R
                  R                  U R                  5      5      5        U R                  S5      nU R                  XR                  5         UR                  XR                  5        S S S 5        g ! , (       d  f       g = f)NT)parentsexist_okz&.egg-info dir should have been createdzcreating '{}'bdist_wheel)r   mkdirr
   runr'   r2   isdirr   infoformatabspathr   get_finalized_commandrC   r   egg2dist)r   egg_info_dirrH   s      r   rJ   dist_info.run\   s    dT:}}--ww}}\**T,TT*''8J8J(KLM00?   /A/AB  /A/AB CBBs   .D
D!)r   r
   r   r   r   r   r   )returnN)__name__
__module____qualname____firstlineno____doc__descriptionuser_optionsboolean_optionsnegative_optr    r-   r   r+   boolrC   rJ   __static_attributes__ r"   r   r   r      s_    
 UKL "?3Oz*L#U4 s $  Cr"   r   )rX   r'   r?   
contextlibr   pathlibr   typingr    r   _shutilr   r>   r
   r)   	distutilsr   distutils.corer   r   r_   r"   r   <module>rg      s:   
 
  %    " .  "SC SCr"   