o
    “si:  ã                   @   s„   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„ deƒZd	ed
efdd„Zded
efdd„ZdS )zD
Create a dist_info directory
As defined in the wheel specification
é    N)Úcleandoc)ÚCommand)Úlog)Ú	packagingc                   @   s.   e Zd ZdZdgZdd„ Zdd„ Zdd„ Zd	S )
Ú	dist_infozcreate a .dist-info directory)z	egg-base=ÚezLdirectory containing .egg-info directories (default: top of the source tree)c                 C   s
   d | _ d S ©N)Úegg_base©Úself© r   úkC:\Users\PC\students\dividedattentionclub\venv\lib\python3.10\site-packages\setuptools/command/dist_info.pyÚinitialize_options   s   
zdist_info.initialize_optionsc                 C   s   d S r   r   r
   r   r   r   Úfinalize_options   s   zdist_info.finalize_optionsc                 C   s˜   |   d¡}| j|_| ¡  | ¡  t| j ¡ ƒ}t| j ¡ ƒ}| jp$t	j
}t	j ||› d|› d�¡}t d t	j |¡¡¡ |   d¡}| |j|¡ d S )NÚegg_infoú-z
.dist-infozcreating '{}'Úbdist_wheel)Zget_finalized_commandr	   r   ÚrunÚ_safeÚdistributionÚget_nameÚ_versionÚget_versionÚosÚcurdirÚpathÚjoinr   ÚinfoÚformatÚabspathZegg2distr   )r   r   ÚnameÚversionÚbaseÚdist_info_dirr   r   r   r   r      s   

zdist_info.runN)Ú__name__Ú
__module__Ú__qualname__ÚdescriptionZuser_optionsr   r   r   r   r   r   r   r      s    ÿr   Ú	componentÚreturnc                 C   s   t  dd| ¡S )zAEscape a component used to form a wheel name according to PEP 491z	[^\w\d.]+Ú_)ÚreÚsub)r(   r   r   r   r   .   s   r   r!   c                 C   sl   |   dd¡}zttj |¡ƒ  dd¡W S  tjjy5   d| ›d| ›d�}t t|ƒ¡ t	|ƒ 
d¡ Y S w )z0Convert an arbitrary string to a version string.ú Ú.r   r*   zInvalid version: zk.
        !!


        ###################
        # Invalid version #
        ###################
        zõ is not valid according to PEP 440.

        Please make sure specify a valid version for your package.
        Also note that future releases of setuptools may halt the build process
        if an invalid version is given.
        

!!
        )ÚreplaceÚstrr   r!   ÚVersionÚInvalidVersionÚwarningsÚwarnr   r   Ústrip)r!   ÚvÚmsgr   r   r   r   3   s   ûór   )Ú__doc__r   r+   r3   Úinspectr   Zdistutils.corer   Ú	distutilsr   Zsetuptools.externr   r   r0   r   r   r   r   r   r   Ú<module>   s    