o
    4ôj”g  ã                   @   sÀ  d Z ddlmZ ddlmZ ddlmZ ddlm	Z	 ddlZddlZddl
Z
ddlZddlZddlZddlZddlZddlmZ dd	lmZ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  ddl!m"Z" ddl#m$Z$ ddl%m&Z& dj'ej(Ž Z)dd„ Z*G dd„ dƒZ+G dd„ de+eƒZ,G dd„ deƒZG dd„ deƒZ-dd „ Z.d!d"„ Z/d#d$„ Z0ej1Z1ej2Z2d%d&„ Z3d'd(„ Z4d2d*d+„Z5d,d-„ Z6d3d.d/„Z7G d0d1„ d1e&ƒZ8dS )4zUsetuptools.command.egg_info

Create a distribution's .egg-info directory and contentsé    )ÚFileList)ÚDistutilsInternalError)Úconvert_path)ÚlogNé   )Úmetadata)Ú_entry_pointsÚ_normalizationé   )Ú_requirestxt)ÚCommand)Úsdist)Úwalk_revctrl)Úedit_config)Ú	bdist_egg)Úglob)Ú	packaging)ÚSetuptoolsDeprecationWarningz{}.{}c                 C   sà  d}|   tjj¡}t tj¡}d|f }t|ƒD ]È\}}|t|ƒd k}|dkr8|r/|d7 }n|d||f 7 }qd}t|ƒ}	||	k rÚ|| }
|
dkrQ||d 7 }n�|
d	krZ||7 }nx|
d
krË|d }||	k rp|| dkrp|d }||	k r~|| dkr~|d }||	k r–|| dkr–|d }||	k r–|| dksˆ||	kr¢|t |
¡7 }n0||d |… }d}|d dkrºd}|dd… }|t |¡7 }|d|f 7 }|}n|t |
¡7 }|d7 }||	k sB|sà||7 }q|d7 }tj|tj	tj
B d�S )zö
    Translate a file path glob like '*.txt' in to a regular expression.
    This differs from fnmatch.translate which allows wildcards to match
    directory separators. It also knows about '**/' which matches any number of
    directories.
    Ú z[^%s]r
   ú**z.*z
(?:%s+%s)*r   Ú*ú?ú[ú!ú]ú^Nz[%s]z\Z)Úflags)ÚsplitÚosÚpathÚsepÚreÚescapeÚ	enumerateÚlenÚcompileÚ	MULTILINEÚDOTALL)r   ÚpatÚchunksr    Z
valid_charÚcÚchunkÚ
last_chunkÚiZ	chunk_lenÚcharZinner_iÚinnerZ
char_class© r0   ún/var/www/html/academy/tools/voices/clone/cosy-venv/lib/python3.10/site-packages/setuptools/command/egg_info.pyÚtranslate_pattern%   s\   


ÿÖ-€r2   c                   @   sf   e Zd ZdZdZedd„ ƒZdd„ Zdd„ Zde	d	e
fd
d„Zd	e	fdd„Zd	e	fdd„ZeeƒZdS )Ú
InfoCommonNc                 C   s   t  | j ¡ ¡S ©N)r	   Ú	safe_nameÚdistributionÚget_name©Úselfr0   r0   r1   Úname|   s   zInfoCommon.namec                 C   s   |   | j ¡ ¡}t |¡S r4   )Ú
_maybe_tagr6   Úget_versionr	   Úsafe_version)r9   Ztaggedr0   r0   r1   Útagged_version€   s   
zInfoCommon.tagged_versionc                 C   s   | j r
|  |¡r
|S || j  S )z�
        egg_info may be called more than once for a distribution,
        in which case the version string already contains all tags.
        )ÚvtagsÚ_already_tagged©r9   Úversionr0   r0   r1   r;   „   s   ÿÿÿýzInfoCommon._maybe_tagrB   Úreturnc                 C   s   |  | j¡p|  |  ¡ ¡S r4   )Úendswithr?   Ú
_safe_tagsrA   r0   r0   r1   r@   �   s   zInfoCommon._already_taggedc              	   C   sH   zt  d| j› �¡dd … W S  tjjy#   t  | j dd¡¡ Y S w )NÚ0r
   ú Ú.)r	   r=   r?   r   rB   ÚInvalidVersionr5   Úreplacer8   r0   r0   r1   rE   ”   s
   ÿzInfoCommon._safe_tagsc                 C   s,   d}| j r
|| j 7 }| jr|t d¡7 }|S )Nr   z%Y%m%d)Ú	tag_buildÚtag_dateÚtimeÚstrftimerA   r0   r0   r1   Útagsœ   s   
zInfoCommon.tags)Ú__name__Ú
__module__Ú__qualname__rK   rL   Úpropertyr:   r>   r;   ÚstrÚboolr@   rE   rO   r?   r0   r0   r0   r1   r3   x   s    
r3   c                   @   s�   e Zd ZdZg d¢ZdgZddiZdd„ Zedd„ ƒZ	e	j
d	d„ ƒZ	d
d„ Zdd„ Zedfdd„Zddd„Zdd„ Zdd„ Zdd„ Zdd„ ZdS )Úegg_infoz+create a distribution's .egg-info directory))z	egg-base=ÚezLdirectory containing .egg-info directories (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]rX   r[   c                 C   s"   d | _ d | _d | _d | _d| _d S )NF)Úegg_baseÚegg_namerV   Úegg_versionÚignore_egg_info_in_manifestr8   r0   r0   r1   Úinitialize_options»   ó
   
zegg_info.initialize_optionsc                 C   ó   d S r4   r0   r8   r0   r0   r1   Útag_svn_revisionÅ   ó   zegg_info.tag_svn_revisionc                 C   rc   r4   r0   )r9   Úvaluer0   r0   r1   rd   É   re   c                 C   s0   t  ¡ }|  ¡ |d< d|d< t|t|d�ƒ dS )z³
        Materialize the value of date into the
        build tag. Install build keys in a deterministic order
        to avoid arbitrary reordering on subsequent builds.
        rK   r   rL   )rV   N)ÚcollectionsÚOrderedDictrO   r   Údict)r9   ÚfilenamerV   r0   r0   r1   Úsave_version_infoÏ   s   zegg_info.save_version_infoc              
   C   sZ  | j | _|  ¡ | _tj | j¡}zt|tjjƒ}|rdnd}tj 	|| j| jf ¡ W n t
yD } ztj d| j| jf ¡|‚d }~ww | jd u rX| jj}|pQi  dtj¡| _|  d¡ t | j¡d | _| jtjkrvtj | j| j¡| _| j| jj_| jj}t|dd ƒp‹t|dd ƒ}|d ur©|| j ¡ kr«| j|_tj | j¡|_d | j_d S d S d S )	Nz%s==%sz%s===%sz2Invalid distribution name or version syntax: %s-%sr   r]   ú	.egg-infoÚkeyr:   ) r:   r^   r>   r_   r   rB   ÚVersionÚ
isinstanceÚrequirementsÚRequirementÚ
ValueErrorÚ	distutilsÚerrorsÚDistutilsOptionErrorr]   r6   Úpackage_dirÚgetr   ÚcurdirÚensure_dirnamer	   Úfilename_componentrV   r   Újoinr   Ú_patched_distÚgetattrÚlowerÚ_versionÚ_parsed_version)r9   Úparsed_versionZ
is_versionÚspecrW   ÚdirsÚpdrm   r0   r0   r1   Úfinalize_optionsÜ   s@   

ÿÿý€ÿ

ýzegg_info.finalize_optionsNc                 C   s   t | j| j||ƒS )ú0Compute filename of the output egg. Private API.)Ú_egg_basenamer^   r_   )r9   Ú
py_versionÚplatformr0   r0   r1   Ú_get_egg_basename  s   zegg_info._get_egg_basenameFc                 C   sR   |r|   |||¡ dS tj |¡r'|du r |s t d||¡ dS |  |¡ dS dS )a¹  Write `data` to `filename` or delete if empty

        If `data` is non-empty, this routine is the same as ``write_file()``.
        If `data` is empty but not ``None``, this is the same as calling
        ``delete_file(filename)`.  If `data` is ``None``, then this is a no-op
        unless `filename` exists, in which case a warning is issued about the
        orphaned file (if `force` is false), or deleted (if `force` is true).
        Nz$%s not set in setup(), but %s exists)Ú
write_filer   r   Úexistsr   ÚwarnÚdelete_file)r9   Úwhatrj   ÚdataÚforcer0   r0   r1   Úwrite_or_delete_file  s   	ûzegg_info.write_or_delete_filec                 C   sB   t  d||¡ | d¡}| jst|dƒ}| |¡ | ¡  dS dS )zªWrite `data` to `filename` (if not a dry run) after announcing it

        `what` is used in a log message to identify what is being written
        to the file.
        zwriting %s to %súutf-8ÚwbN)r   ÚinfoÚencodeÚdry_runÚopenÚwriteÚclose)r9   r�   rj   r�   Úfr0   r0   r1   r‹     s   


ýzegg_info.write_filec                 C   s$   t  d|¡ | jst |¡ dS dS )z8Delete `filename` (if not a dry run) after announcing itzdeleting %sN)r   r•   r—   r   Úunlink)r9   rj   r0   r0   r1   rŽ   +  s   ÿzegg_info.delete_filec              
   C   s¼   |   | j¡ z	t | jd ¡ W n ty) } zd| j› d�}tj |¡|‚d }~ww tj	dd�D ]}| 
¡ }|| |jtj | j|j¡ƒ q0tj | jd¡}tj |¡rX|  |¡ |  ¡  d S )Nz'Cannot update time stamp of directory 'ú'zegg_info.writers)Úgroupznative_libs.txt)ÚmkpathrV   r   ÚutimeÚOSErrorrs   rt   ÚDistutilsFileErrorr   Úentry_pointsÚloadr:   r   r{   rŒ   rŽ   Úfind_sources)r9   rW   ÚmsgÚepÚwriterÚnlr0   r0   r1   Úrun1  s   €þ
zegg_info.runc                 C   s<   t j | jd¡}t| jƒ}| j|_||_| 	¡  |j
| _
dS )z"Generate SOURCES.txt manifest filezSOURCES.txtN)r   r   r{   rV   Úmanifest_makerr6   r`   Úignore_egg_info_dirÚmanifestrª   Úfilelist)r9   Zmanifest_filenameÚmmr0   r0   r1   r¥   C  s   
zegg_info.find_sources©F)rP   rQ   rR   ÚdescriptionÚuser_optionsÚboolean_optionsÚnegative_optra   rS   rd   Úsetterrk   r…   ÚPY_MAJORrŠ   r’   r‹   rŽ   rª   r¥   r0   r0   r0   r1   rV   §   s&    ÿ


,
rV   c                       sŽ   e Zd Zd!‡ fdd„	Zdd„ Zdd„ Zd	d
„ Zdd„ Zdd„ Zdd„ Z	dd„ Z
dd„ Zdd„ Zdd„ Zdd„ Zdd„ Zdd„ Zdd „ Z‡  ZS )"r   NFc                    s   t ƒ  ||¡ || _d S r4   )ÚsuperÚ__init__r¬   )r9   r�   Údebug_printr¬   ©Ú	__class__r0   r1   r¸   P  s   
zFileList.__init__c              	   C   s  |   |¡\}}}}| j| j| j| jt | j|¡t | j|¡| j	| j
dœ}dddddddd	dœ}z|| }W n tyI   d
|›d|›�}	t|	ƒd ‚w | d¡}
|dv rV|g}|
r[|fnd}|| }|  d |g|
rl|gng  | ¡¡ |D ]}||ƒs…tj||g|¢R Ž  qud S )N)ÚincludeÚexcludezglobal-includezglobal-excludezrecursive-includezrecursive-excludeÚgraftÚprunez%warning: no files found matching '%s'z9warning: no previously-included files found matching '%s'z>warning: no files found matching '%s' anywhere in distributionzRwarning: no previously-included files matching '%s' found anywhere in distributionz:warning: no files found matching '%s' under directory '%s'zNwarning: no previously-included files matching '%s' found under directory '%s'z+warning: no directories found matching '%s'z6no previously-included directories found matching '%s'z$Invalid MANIFEST.in: unknown action z in z
recursive->   r¾   r¿   r0   rG   )Ú_parse_template_liner¼   r½   Úglobal_includeÚglobal_excludeÚ	functoolsÚpartialÚrecursive_includeÚrecursive_excluder¾   r¿   ÚKeyErrorr   Ú
startswithr¹   r{   r   r�   )r9   ÚlineÚactionÚpatternsÚdirÚdir_patternZ
action_mapZlog_mapZprocess_actionr¦   Zaction_is_recursiveZextra_log_argsZlog_tmplÚpatternr0   r0   r1   Úprocess_template_lineT  s\   þþòî
þ
ÿÿ€þzFileList.process_template_linec                 C   sR   d}t t| jƒd ddƒD ]}|| j| ƒr&|  d| j|  ¡ | j|= d}q|S )z†
        Remove all files from the file list that match the predicate.
        Return True if any matching files were removed
        Fr
   éÿÿÿÿz
 removing T)Úranger$   Úfilesr¹   )r9   Ú	predicateÚfoundr-   r0   r0   r1   Ú_remove_filesš  s   €zFileList._remove_filesc                 C   ó$   dd„ t |ƒD ƒ}|  |¡ t|ƒS )z#Include files that match 'pattern'.c                 S   ó   g | ]
}t j |¡s|‘qS r0   ©r   r   Úisdir©Ú.0r›   r0   r0   r1   Ú
<listcomp>©  ó    z$FileList.include.<locals>.<listcomp>©r   ÚextendrU   ©r9   rÎ   rÔ   r0   r0   r1   r¼   §  s   
zFileList.includec                 C   s   t |ƒ}|  |j¡S )z#Exclude files that match 'pattern'.)r2   rÕ   Úmatch©r9   rÎ   rá   r0   r0   r1   r½   ­  s   zFileList.excludec                 C   s8   t j |d|¡}dd„ t|dd�D ƒ}|  |¡ t|ƒS )zN
        Include all files anywhere in 'dir/' that match the pattern.
        r   c                 S   r×   r0   rØ   rÚ   r0   r0   r1   rÜ   ·  rÝ   z.FileList.recursive_include.<locals>.<listcomp>T)Ú	recursive)r   r   r{   r   rß   rU   )r9   rÌ   rÎ   Zfull_patternrÔ   r0   r0   r1   rÅ   ²  s   
zFileList.recursive_includec                 C   s    t tj |d|¡ƒ}|  |j¡S )zM
        Exclude any file anywhere in 'dir/' that match the pattern.
        r   ©r2   r   r   r{   rÕ   rá   )r9   rÌ   rÎ   rá   r0   r0   r1   rÆ   »  s   zFileList.recursive_excludec                 C   rÖ   )zInclude all files from 'dir/'.c                 S   s"   g | ]}t j |¡D ]}|‘q
qS r0   )rs   r®   Úfindall)rÛ   Z	match_dirÚitemr0   r0   r1   rÜ   Ä  s    
ýþÿz"FileList.graft.<locals>.<listcomp>rÞ   )r9   rÌ   rÔ   r0   r0   r1   r¾   Â  s
   þ
zFileList.graftc                 C   s   t tj |d¡ƒ}|  |j¡S )zFilter out files from 'dir/'.r   rä   )r9   rÌ   rá   r0   r0   r1   r¿   Ì  s   zFileList.prunec                    sJ   | j du r	|  ¡  ttj d|¡ƒ‰ ‡ fdd„| j D ƒ}|  |¡ t|ƒS )z“
        Include all files anywhere in the current directory that match the
        pattern. This is very inefficient on large file trees.
        Nr   c                    s   g | ]	}ˆ   |¡r|‘qS r0   ©rá   rÚ   rç   r0   r1   rÜ   Ù  s    z+FileList.global_include.<locals>.<listcomp>)Úallfilesrå   r2   r   r   r{   rß   rU   rà   r0   rç   r1   rÁ   Ñ  s   

zFileList.global_includec                 C   s   t tj d|¡ƒ}|  |j¡S )zD
        Exclude all files anywhere that match the pattern.
        r   rä   râ   r0   r0   r1   rÂ   Ý  s   zFileList.global_excludec                 C   s<   |  d¡r|d d… }t|ƒ}|  |¡r| j |¡ d S d S )NúrÐ   )rD   r   Ú
_safe_pathrÒ   Úappend)r9   ræ   r   r0   r0   r1   rë   ä  s   

ÿzFileList.appendc                 C   s   | j  t| j|ƒ¡ d S r4   )rÒ   rß   Úfilterrê   )r9   Úpathsr0   r0   r1   rß   ì  s   zFileList.extendc                 C   s   t t| j| jƒƒ| _dS )zÜ
        Replace self.files with only safe paths

        Because some owners of FileList manipulate the underlying
        ``files`` attribute directly, this method must be called to
        repair those paths.
        N)Úlistrì   rê   rÒ   r8   r0   r0   r1   Ú_repairï  s   zFileList._repairc              	   C   sº   d}t  |¡}|d u rt d| ¡ dS t  |d¡}|d u r't ||d¡ dS z"d|v p/d|v }| jr8|r8W dS tj |¡sDtj |¡rGW dS W d S  t	y\   t ||t
 ¡ ¡ Y d S w )Nz!'%s' not %s encodable -- skippingz''%s' in unexpected encoding -- skippingFr“   rl   s	   .egg-infoT)Úunicode_utilsÚfilesys_decoder   r�   Z
try_encoder¬   r   r   rŒ   ÚUnicodeEncodeErrorÚsysÚgetfilesystemencoding)r9   r   Zenc_warnZu_pathZ	utf8_pathÚis_egg_infor0   r0   r1   rê   ù  s&   

ÿÿzFileList._safe_path)NNF)rP   rQ   rR   r¸   rÏ   rÕ   r¼   r½   rÅ   rÆ   r¾   r¿   rÁ   rÂ   rë   rß   rï   rê   Ú__classcell__r0   r0   rº   r1   r   M  s     F	

r   c                   @   st   e Zd ZdZdd„ Zdd„ Zdd„ Zdd	„ Zd
d„ Zdd„ Z	e
dd„ ƒZdd„ Zdd„ Zdd„ Zdd„ Zdd„ ZdS )r«   zMANIFEST.inc                 C   s"   d| _ d| _d| _d| _d| _d S )Nr
   F)Zuse_defaultsr¿   Zmanifest_onlyZforce_manifestr¬   r8   r0   r0   r1   ra     rb   z!manifest_maker.initialize_optionsc                 C   rc   r4   r0   r8   r0   r0   r1   r…     s   zmanifest_maker.finalize_optionsc                 C   sz   t | jd�| _tj | j¡s|  ¡  |  ¡  tj | j	¡r!|  
¡  |  ¡  |  ¡  |  ¡  | j ¡  | j ¡  |  ¡  d S )N)r¬   )r   r¬   r®   r   r   rŒ   r­   Úwrite_manifestÚadd_defaultsÚtemplateZread_templateÚadd_license_filesÚ_add_referenced_filesÚprune_file_listÚsortÚremove_duplicatesr8   r0   r0   r1   rª   "  s   

zmanifest_maker.runc                 C   s   t  |¡}| tjd¡S )Nú/)rð   rñ   rJ   r   r    )r9   r   r0   r0   r1   Ú_manifest_normalize0  s   
z"manifest_maker._manifest_normalizec                    sB   ˆ j  ¡  ‡ fdd„ˆ j jD ƒ}dˆ j }ˆ  tˆ j|f|¡ dS )zo
        Write the file list in 'self.filelist' to the manifest file
        named by 'self.manifest'.
        c                    s   g | ]}ˆ   |¡‘qS r0   )r   rÚ   r8   r0   r1   rÜ   <  s    z1manifest_maker.write_manifest.<locals>.<listcomp>zwriting manifest file '%s'N)r®   rï   rÒ   r­   Úexecuter‹   )r9   rÒ   r¦   r0   r8   r1   r÷   4  s   

zmanifest_maker.write_manifestc                 C   s   |   |¡st | |¡ d S d S r4   )Ú_should_suppress_warningr   r�   )r9   r¦   r0   r0   r1   r�   @  s   
ÿzmanifest_maker.warnc                 C   s   t  d| ¡S )z;
        suppress missing-file warnings from sdist
        zstandard file .*not found)r!   rá   )r¦   r0   r0   r1   r  D  s   z'manifest_maker._should_suppress_warningc                 C   sŒ   t  | ¡ | j | j¡ | j | j¡ ttƒ ƒ}|r!| j |¡ nt	j
 | j¡r,|  ¡  t	j
 d¡r8| j d¡ |  d¡}| j |j¡ d S )Nzsetup.pyrV   )r   rø   r®   rë   rù   r­   rî   r   rß   r   r   rŒ   Zread_manifestÚget_finalized_commandr¾   rV   )r9   ZrcfilesZei_cmdr0   r0   r1   rø   K  s   


zmanifest_maker.add_defaultsc                 C   s4   | j jjpg }|D ]}t d|¡ q	| j |¡ d S )Nzadding license file '%s')r6   r   Úlicense_filesr   r•   r®   rß   )r9   r  Úlfr0   r0   r1   rú   ]  s   z manifest_maker.add_license_filesc                 C   s4   t | jdg ƒ}|D ]}t d|¡ q	| j |¡ dS )zGAdd files referenced by the config (e.g. `file:` directive) to filelistÚ_referenced_filesz%adding file referenced by config '%s'N)r}   r6   r   Údebugr®   rß   )r9   Z
referencedZrfr0   r0   r1   rû   c  s   z$manifest_maker._add_referenced_filesc                 C   sZ   |   d¡}| j ¡ }| j |j¡ | j |¡ t tj	¡}| jj
d| d | dd� d S )NÚbuildz(^|z)(RCS|CVS|\.svn)r
   )Úis_regex)r  r6   Úget_fullnamer®   r¿   Ú
build_baser!   r"   r   r    Úexclude_pattern)r9   r  Úbase_dirr    r0   r0   r1   rü   k  s   


ÿzmanifest_maker.prune_file_listc                 C   s*   t |dƒr	| ¡ S tjdddd� | ¡ S )a0  
        The parent class implementation of this method
        (``sdist``) will try to include data files, which
        might cause recursion problems when
        ``include_package_data=True``.

        Therefore, avoid triggering any attempt of
        analyzing/building the manifest again.
        Úget_data_files_without_manifestz@`build_py` command does not inherit from setuptools' `build_py`.z±
            Custom 'build_py' does not implement 'get_data_files_without_manifest'.
            Please extend command classes from setuptools instead of distutils.
            z!https://peps.python.org/pep-0632/)Úsee_url)Úhasattrr  r   ÚemitZget_data_files)r9   Úbuild_pyr0   r0   r1   Ú_safe_data_filesu  s   

ú	zmanifest_maker._safe_data_filesN)rP   rQ   rR   rù   ra   r…   rª   r   r÷   r�   Ústaticmethodr  rø   rú   rû   rü   r  r0   r0   r0   r1   r«     s    

r«   c                 C   sN   d  |¡}| d¡}t| dƒ�}| |¡ W d  ƒ dS 1 s w   Y  dS )z{Create a file with the specified name and write 'contents' (a
    sequence of strings without line terminators) to it.
    Ú
r“   r”   N)r{   r–   r˜   r™   )rj   Úcontentsr›   r0   r0   r1   r‹   Ž  s
   

"ÿr‹   c              	   C   sŽ   t  d|¡ | jsE| jj}| j|j|_}| j|j|_}z| 	| j
¡ W |||_|_n|||_|_w t| jdd ƒ}t | j
|¡ d S d S )Nz
writing %sÚzip_safe)r   r•   r—   r6   r   r_   rB   r^   r:   Úwrite_pkg_inforV   r}   r   Zwrite_safety_flag)ÚcmdÚbasenamerj   r   ZoldverZoldnameÚsafer0   r0   r1   r  ›  s    òr  c                 C   s   dS )aj  
    Unused: left to avoid errors when updating (from source) from <= 67.8.
    Old installations have a .dist-info directory with the entry-point
    ``depends.txt = setuptools.command.egg_info:warn_depends_obsolete``.
    This may trigger errors when running the first egg_info in build_meta.
    TODO: Remove this function in a version sufficiently > 68.
    Nr0   ©r  r  rj   r0   r0   r1   Úwarn_depends_obsolete®  s    r  c                 C   s:   t  dd„ | j ¡ D ƒ¡}|  d|d t|ƒ¡d ¡ d S )Nc                 S   s   g | ]
}|  d d¡d ‘qS )rH   r
   r   )r   )rÛ   Úkr0   r0   r1   rÜ   ¾  s    ÿz(write_toplevel_names.<locals>.<listcomp>ztop-level namesr  )ri   Úfromkeysr6   Úiter_distribution_namesr‹   r{   Úsorted)r  r  rj   Úpkgsr0   r0   r1   Úwrite_toplevel_names½  s   
ÿ r#  c                 C   s   t | ||dƒ d S )NT)Ú	write_argr  r0   r0   r1   Úoverwrite_argÄ  s   r%  Fc                 C   sH   t j |¡d }t| j|d ƒ}|d urd |¡d }|  ||||¡ d S )Nr   r  )r   r   Úsplitextr}   r6   r{   r’   )r  r  rj   r‘   Úargnamerf   r0   r0   r1   r$  È  s
   r$  c                 C   s,   t  | jj¡}t  |¡}|  d||d¡ d S )Nzentry pointsT)r   r¤   r6   r£   Úrenderr’   )r  r  rj   ÚepsZdefnr0   r0   r1   Úwrite_entriesÐ  s   
r*  c                 C   sB   t  | ¡}t  |¡}|› d|› d|pt› �}|r|d|› �7 }|S )r†   ú-z-py)r	   rz   r¶   )r^   r_   rˆ   r‰   r:   rB   Úeggr0   r0   r1   r‡   Ö  s   

r‡   c                   @   s   e Zd ZdZdS )ÚEggInfoDeprecationWarningz?Deprecated behavior warning for EggInfo, bypassing suppression.N)rP   rQ   rR   Ú__doc__r0   r0   r0   r1   r-  à  s    r-  r°   )NN)9r.  Údistutils.filelistr   Z	_FileListZdistutils.errorsr   Údistutils.utilr   rs   r   rÃ   r   r!   ró   rM   rg   Ú
_importlibr   r   r   r	   r   Ú
setuptoolsr   Zsetuptools.command.sdistr   r   Zsetuptools.command.setoptr   Zsetuptools.commandr   Zsetuptools.unicode_utilsrð   Zsetuptools.globr   Zsetuptools.externr   Úwarningsr   ÚformatÚversion_infor¶   r2   r3   rV   r«   r‹   r  r  Zwrite_requirementsZwrite_setup_requirementsr#  r%  r$  r*  r‡   r-  r0   r0   r0   r1   Ú<module>   sX    S/ ' Iy


