Ë
    
_ßd’  ã                   óŠ   — d Z ddl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  G d
„ de	«      Zd„ Zd„ Zy)zD
Create a dist_info directory
As defined in the wheel specification
é    N)Úcontextmanager)Úlog)ÚCommand)ÚPathé   )Ú_normalization)ÚSetuptoolsDeprecationWarningc                   óX   — e Zd ZdZdZg d¢ZddgZddiZd„ Zd„ Z	e
d	ed
efd„«       Z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	egg-base=Úezjdirectory containing .egg-info directories (default: top of the source tree) DEPRECATED: use --output-dir.)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                 óf   — d | _         d | _        d | _        d | _        d | _        d | _        d| _        y )NF)Úegg_baseÚ
output_dirÚnameÚdist_info_dirÚtag_dateÚ	tag_buildÚkeep_egg_info)Úselfs    ú>/usr/lib/python3/dist-packages/setuptools/command/dist_info.pyÚinitialize_optionszdist_info.initialize_options1   s5   € ØˆŒØˆŒØˆŒ	Ø!ˆÔØˆŒØˆŒØ"ˆÕó    c                 óx  — | j                   r8d}t        j                  |d¬«       | j                   xs | j                  | _        | j                  }|j
                  xs t        j                  }t        | j                  xs |«      | _        | 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 )NzA--egg-base is deprecated for dist_info command. Use --output-dir.)iç  é	   é   )Údue_dateÚegg_infoú-z
.dist-info)r   r	   Úemitr   ÚdistributionÚsrc_rootÚosÚcurdirr   Úreinitialize_commandÚstrr   r   Úfinalize_optionsr$   r   Ú
safer_nameÚget_nameÚsafer_best_effort_versionÚget_versionr   ÚpathÚjoinr   )r   ÚmsgÚdistÚproject_dirr$   r   Úversions          r   r-   zdist_info.finalize_options:   sA  € Ø�=Š=ØUˆCÜ(×-Ñ-¨c¸MÕJð #Ÿm™mÒ>¨t¯©ˆDŒOà× Ñ ˆØ—m‘mÒ0¤r§y¡yˆÜ˜tŸ™Ò=°+Ó>ˆŒà×,Ñ,¨ZÓ8ˆÜ §¡Ó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  — |rJ|› d�}t        |d¬«       t        ||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Ú_copyÚshutilÚmove)r   r8   r9   Úbkp_names       r   Ú_maybe_bkp_dirzdist_info._maybe_bkp_dir[   sk   è ø€ áØ"˜ 8Ð,ˆHÜ�¨Õ-Ü�(˜H°DÀ4ÕHð0Ûä�H¨DÕ1Ü—‘˜H hÕ/äøô �H¨DÕ1Ü—‘˜H hÕ/üs   ‚$A<§A «)A<Á%A9Á9A<c                 ó<  — | j                   j                  dd¬«       | j                  j                  «        | j                  j                  }t        j
                  j                  |«      sJ d«       ‚t        j                  dj                  t        j
                  j                  | j                  «      «      «       | 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)   r2   Úisdirr   ÚinfoÚformatÚabspathr   Úget_finalized_commandrC   r   Úegg2dist)r   Úegg_info_dirrG   s      r   rI   zdist_info.runi   sÕ   € Ø�‰×Ñ d°TÐÔ:Ø�‰×ÑÔØ—}‘}×-Ñ-ˆÜ�w‰w�}‰}˜\Ô*ÐTÐ,TÓTÐ*ä�‰�×'Ñ'¬¯©¯©¸×8JÑ8JÓ(KÓLÔMØ×0Ñ0°Ó?ˆð × Ñ  ¨t×/AÑ/AÓBñ 	CØ× Ñ  ¨t×/AÑ/AÔB÷	C÷ 	Cñ 	Cús   Ã,DÄDN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__ÚdescriptionÚuser_optionsÚboolean_optionsÚnegative_optr   r-   r   r,   ÚboolrC   rI   © r   r   r   r      s`   „ ñð
 U€Kò€Lð( " ?Ð3€OØ˜zÐ*€Lò#òUðB ð sð ¸$ò ó ðóCr   r   c                 óp   — t         j                  j                  | «      rt        j                  | fi |¤Ž y y )N)r)   r2   rJ   r@   Úrmtree)Údir_nameÚoptss     r   r>   r>   w   s(   € Ü	‡w�w‡}�}�XÔÜ�‰�hÑ' $Ó'ð r   c                 ó|   — t         j                  dk  r|j                  dd «       t        j                  | |fi |¤Ž y )N)é   é   r<   )ÚsysÚversion_infoÚpopr@   Úcopytree)ÚsrcÚdstr^   s      r   r?   r?   |   s1   € Ü
×Ñ˜&Ò Ø�‰� $Ô'Ü
‡O�O�C˜Ñ% Ó%r   )rT   r)   r@   rb   Ú
contextlibr   Ú	distutilsr   Údistutils.corer   Úpathlibr   Ú r   Úwarningsr	   r   r>   r?   rZ   r   r   ú<module>rn      sB   ðñó
 
Û Û 
Ý %Ý Ý "Ý å Ý 3ôbC�ô bCòJ(ó
&r   