Ë
    -Tbjù
  ã                   óx   — 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  G d„ d	e«      Zd
„ Zd„ Zd„ Zy)zˆ
distutils.command.install_egg_info

Implements the Distutils 'install_egg_info' command, for installing
a package's PKG-INFO metadata.
é    N)ÚClassVaré   )Údir_util)Úlog)ÚCommandc                   óf   — e Zd ZU dZdZdgZeeee	e	e	f         e
d<   d„ Zed„ «       Zd„ Zd„ Zd	„ Zy
)Úinstall_egg_infoz)Install an .egg-info file for the packagez8Install package's PKG-INFO metadata as an .egg-info file)zinstall-dir=Údzdirectory to install toÚuser_optionsc                 ó   — d | _         y ©N)Úinstall_dir©Úselfs    úa/var/www/html/venv/lib/python3.12/site-packages/setuptools/_distutils/command/install_egg_info.pyÚinitialize_optionsz#install_egg_info.initialize_options   s
   € ØˆÕó    c                 ó.  — t        t        | j                  j                  «       «      «      }t        t	        | j                  j                  «       «      «      }|› d|› dt        j                  j                  › dt        j                  j                  › d�S )z_
        Allow basename to be overridden by child class.
        Ref pypa/distutils#2.
        ú-z-pyú.z	.egg-info)
Úto_filenameÚ	safe_nameÚdistributionÚget_nameÚsafe_versionÚget_versionÚsysÚversion_infoÚmajorÚminor)r   ÚnameÚversions      r   Úbasenamezinstall_egg_info.basename   sz   € ô œ9 T×%6Ñ%6×%?Ñ%?Ó%AÓBÓCˆÜœl¨4×+<Ñ+<×+HÑ+HÓ+JÓKÓLˆØ��q˜˜	 ¤S×%5Ñ%5×%;Ñ%;Ð$<¸A¼c×>NÑ>N×>TÑ>TÐ=UÐU^Ð_Ð_r   c                 ó¾   — | j                  dd«       t        j                  j                  | j                  | j
                  «      | _        | j                  g| _        y )NÚinstall_lib)r   r   )Úset_undefined_optionsÚosÚpathÚjoinr   r#   ÚtargetÚoutputsr   s    r   Úfinalize_optionsz!install_egg_info.finalize_options'   s@   € Ø×"Ñ" =Ð2PÔQÜ—g‘g—l‘l 4×#3Ñ#3°T·]±]ÓCˆŒØŸ™�}ˆ�r   c                 óâ  — | j                   }t        j                  j                  |«      r5t        j                  j	                  |«      st        j                  |«       n±t        j                  j                  |«      r0| j                  t        j                  | j                   fd|z   «       nbt        j                  j                  | j                  «      s9| j                  t        j                  | j                  fd| j                  z   «       t        j                  d|«       t        |dd¬«      5 }| j                  j                   j#                  |«       d d d «       y # 1 sw Y   y xY w)Nz	Removing z	Creating z
Writing %sÚwzUTF-8)Úencoding)r*   r'   r(   ÚisdirÚislinkr   Úremove_treeÚexistsÚexecuteÚunlinkr   Úmakedirsr   ÚinfoÚopenr   ÚmetadataÚwrite_pkg_file)r   r*   Úfs      r   Úrunzinstall_egg_info.run,   sõ   € Ø—‘ˆÜ�7‰7�=‰=˜Ô ¬¯©¯©¸Ô)?Ü× Ñ  Õ(Ü�W‰W�^‰^˜FÔ#Ø�L‰LœŸ™ T§[¡[ N°KÀ&Ñ4HÕIÜ—‘—‘˜t×/Ñ/Ô0Ø�L‰LÜ—‘˜d×.Ñ.Ð0°+À×@PÑ@PÑ2Pôô 	�‰�˜vÔ&Ü�&˜#¨Ô0ð 	9°AØ×Ñ×&Ñ&×5Ñ5°aÔ8÷	9÷ 	9ñ 	9ús   Ä6&E%Å%E.c                 ó   — | j                   S r   )r+   r   s    r   Úget_outputszinstall_egg_info.get_outputs:   s   € Ø�|‰|Ðr   N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__Údescriptionr   r   ÚlistÚtupleÚstrÚ__annotations__r   Úpropertyr#   r,   r<   r>   © r   r   r	   r	      sZ   … Ù3àL€Kà8ð:€L�(˜4  c¨3° mÑ 4Ñ5Ñ6ó ò ð ñ`ó ð`ò%ò
9ór   r	   c                 ó0   — t        j                  dd| «      S )z�Convert an arbitrary string to a standard distribution name

    Any runs of non-alphanumeric/. characters are replaced with a single '-'.
    ú[^A-Za-z0-9.]+r   )ÚreÚsub©r!   s    r   r   r   C   s   € ô
 �6‰6Ð" C¨Ó.Ð.r   c                 óT   — | j                  dd«      } t        j                  dd| «      S )zÌConvert an arbitrary string to a standard version string

    Spaces become dots, and all other non-alphanumeric characters become
    dashes, with runs of multiple dashes condensed to a single dash.
    ú r   rK   r   )ÚreplacerL   rM   )r"   s    r   r   r   K   s(   € ð �o‰o˜c 3Ó'€GÜ�6‰6Ð" C¨Ó1Ð1r   c                 ó&   — | j                  dd«      S )z|Convert a project or version name to its filename-escaped form

    Any '-' characters are currently replaced with '_'.
    r   Ú_)rQ   rN   s    r   r   r   U   s   € ð
 �<‰<˜˜SÓ!Ð!r   )rB   r'   rL   r   Útypingr   Ú r   Ú_logr   Úcmdr   r	   r   r   r   rI   r   r   ú<module>rX      s=   ðñó 
Û 	Û 
Ý å Ý Ý ô)�wô )òb/ò2ó"r   