Ë
    nûàgz  ã                   óŽ   — d Z ddlZddlZddlmZ ddlmZ ddlmZ ddl	m
Z
 ddlmZ d	d
lmZ ddlmZ ddlmZ  G d„ de«      Zy)zD
Create a dist_info directory
As defined in the wheel specification
é    N)Úcontextmanager)ÚPath)Úcasté   )Ú_normalization)Úrmdiré   )Úegg_info)Úlog)ÚCommandc                   ó\   — e Zd ZdZdZg d¢ZddgZddiZd„ Zdd	„Z	e
d
edefd„«       Zdd„Zy)Ú	dist_infoz‡
    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   — d | _         d | _        d | _        d | _        d | _        d| _        y )NF)Ú
output_dirÚnameÚdist_info_dirÚtag_dateÚ	tag_buildÚkeep_egg_info)Úselfs    úZ/var/www/skyplay_api_hub/venv/lib/python3.12/site-packages/setuptools/command/dist_info.pyÚinitialize_optionszdist_info.initialize_options,   s.   € ØˆŒØˆŒ	Ø!ˆÔØˆŒØˆŒØ"ˆÕó    Nc                 ó  — | j                   }|j                  xs t        j                  }t	        | j
                  xs |«      | _        t        t        | j                  d«      «      }t        | j
                  «      |_
        | j                  r| j                  |_        n|j                  | _        | j                  r| j                  |_        n|j                  | _        |j                  «        || _        t        j                   |j#                  «       «      }t        j$                  |j'                  «       «      }|› d|› �| _        t        j*                  j-                  | j
                  | j(                  › d�«      | _        y )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+   zdist_info.finalize_options4   s  € Ø× Ñ ˆØ—m‘mÒ0¤r§y¡yˆÜ˜tŸ™Ò=°+Ó>ˆŒäœ d×&?Ñ&?À
Ó&KÓLˆÜ §¡Ó0ˆÔà�=Š=Ø $§¡ˆHÕà$×-Ñ-ˆDŒMà�>Š>Ø!%§¡ˆHÕà%×/Ñ/ˆDŒNà×!Ñ!Ô#Ø ˆŒä×(Ñ(¨¯©«Ó9ˆÜ ×:Ñ:¸4×;KÑ;KÓ;MÓNˆØ�f˜A˜g˜YÐ'ˆŒ	ÜŸW™WŸ\™\¨$¯/©/¸d¿i¹i¸[È
Ð;SÓTˆÕr    Údir_pathÚrequires_bkpc              #   ó  K  — |rT|› d�}t        |d¬«       t        j                  ||dd¬«       	 d –— t        |d¬«       t        j                  ||«       y d –— y # t        |d¬«       t        j                  ||«       w xY w­w)Nz.__bkp__T)Úignore_errors)Údirs_exist_okÚsymlinks)Ú_rmÚshutilÚcopytreeÚmove)r   r5   r6   Úbkp_names       r   Ú_maybe_bkp_dirzdist_info._maybe_bkp_dirN   so   è ø€ áØ"˜ 8Ð,ˆHÜ�¨Õ-Ü�O‰O˜H h¸dÈTÕRð0Ûä�H¨DÕ1Ü—‘˜H hÕ/äøô �H¨DÕ1Ü—‘˜H hÕ/üs   ‚.B±A µ)BÁ%BÂBc                 ó&  — | j                   j                  dd¬«       | j                  j                  «        | j                  j                  }t        j
                  j                  |«      sJ d«       ‚t        j                  dt        j
                  j                  | j                  «      › d�«       | j                  d«      }| j                  || j                  «      5  |j                  || j                  «       d d d «       y # 1 sw Y   y xY w)NT)ÚparentsÚexist_okz&.egg-info dir should have been createdz
creating 'ú'Úbdist_wheel)r   Úmkdirr
   Úrunr%   r0   Úisdirr   ÚinfoÚabspathr   Úget_finalized_commandr@   r   Úegg2dist)r   Úegg_info_dirrE   s      r   rG   zdist_info.run\   sÔ   € Ø�‰×Ñ d°TÐÔ:Ø�‰×ÑÔØ—}‘}×-Ñ-ˆÜ�w‰w�}‰}˜\Ô*ÐTÐ,TÓTÐ*ä�‰�:œbŸg™gŸo™o¨d×.@Ñ.@ÓAÐBÀ!ÐDÔEØ×0Ñ0°Ó?ˆð × Ñ  ¨t×/AÑ/AÓBñ 	CØ× Ñ  ¨t×/AÑ/AÔB÷	C÷ 	Cñ 	Cús   Ã!DÄD)ÚreturnN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__ÚdescriptionÚuser_optionsÚboolean_optionsÚnegative_optr   r+   r   r)   Úboolr@   rG   © r    r   r   r      s_   „ ñð
 U€Kò€Lð " ?Ð3€OØ˜zÐ*€Lò#óUð4 ð sð ¸$ò ó ðôCr    r   )rR   r%   r<   Ú
contextlibr   Úpathlibr   Útypingr   Ú r   Ú_shutilr   r;   r
   r'   Ú	distutilsr   Údistutils.corer   r   rX   r    r   ú<module>r`      s:   ðñó
 
Û Ý %Ý Ý å Ý "Ý .å Ý "ôSC�õ SCr    