U
    tD7hÔc  ã                   @   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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m Z m!Z!m"Z"m#Z#m$Z$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„ Z-G dd„ dƒZ.G dd„ de.eƒZ/G dd„ deƒZG dd„ deƒZ0dd„ Z1dd„ Z2d d!„ Z3d"d#„ Z4d$d%„ Z5d&d'„ Z6d(d)„ Z7d*d+„ Z8d5d-d.„Z9d/d0„ Z:d1d2„ Z;G d3d4„ d4e,ƒZ<dS )6zUsetuptools.command.egg_info

Create a distribution's .egg-info directory and contentsé    )ÚFileList)ÚDistutilsInternalError)Úconvert_path)ÚlogN)Úsix)Úmap)ÚCommand)Úsdist)Úwalk_revctrl)Úedit_config)Ú	bdist_egg)Úparse_requirementsÚ	safe_nameÚparse_versionÚsafe_versionÚyield_linesÚ
EntryPointÚiter_entry_pointsÚto_filename)Úglob)Ú	packaging)ÚSetuptoolsDeprecationWarningc                 C   sÞ  d}|   tjj¡}t tj¡}d|f }t|ƒD ]Œ\}}|t|ƒd k}|dkrr|r`|d7 }q0|d||f 7 }q0d}t|ƒ}	||	k r²|| }
|
dkr¨||d 7 }n |
d	krº||7 }nî|
d
krš|d }||	k rè|| dkrè|d }||	k r|| dkr|d }||	k r,|| dkr,|d }q||	krF|t |
¡7 }nR||d |… }d}|d dkrxd}|dd… }|t |¡7 }|d|f 7 }|}n|t |
¡7 }|d7 }q~|s0||7 }q0|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]é   ú**z.*z
(?:%s+%s)*r   Ú*ú?ú[ú!ú]ú^Nz[%s]z\Z)Úflags)ÚsplitÚosÚpathÚsepÚreÚescapeÚ	enumerateÚlenÚcompileÚ	MULTILINEÚDOTALL)r   ZpatZchunksr%   Z
valid_charÚcÚchunkZ
last_chunkÚiZ	chunk_lenÚcharZinner_iÚinnerZ
char_class© r2   ú=/usr/lib/python3/dist-packages/setuptools/command/egg_info.pyÚtranslate_pattern%   sV    







r4   c                   @   s8   e Zd ZdZdZedd„ ƒZdd„ Zdd„ ZeeƒZ	dS )Ú
InfoCommonNc                 C   s   t | j ¡ ƒS ©N)r   ÚdistributionZget_name©Úselfr2   r2   r3   Úname|   s    zInfoCommon.namec                 C   s2   | j  ¡ }| jr$| | j¡r$t|ƒS t|| j ƒS r6   )r7   Zget_versionÚvtagsÚendswithr   ©r9   Úversionr2   r2   r3   Útagged_version€   s    
zInfoCommon.tagged_versionc                 C   s,   d}| j r|| j 7 }| jr(|t d¡7 }|S )Nr   z-%Y%m%d)Ú	tag_buildÚtag_dateÚtimeÚstrftimer=   r2   r2   r3   Útagsˆ   s    
zInfoCommon.tags)
Ú__name__Ú
__module__Ú__qualname__r@   rA   Úpropertyr:   r?   rD   r;   r2   r2   r2   r3   r5   x   s   
r5   c                   @   sŽ   e Zd ZdZddddg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ddd„Z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]rK   rN   c                 C   s"   d | _ d | _d | _d | _d| _d S )NF)Úegg_baseÚegg_namerI   Úegg_versionÚbroken_egg_infor8   r2   r2   r3   Úinitialize_options¢   s
    zegg_info.initialize_optionsc                 C   s   d S r6   r2   r8   r2   r2   r3   Útag_svn_revision¬   s    zegg_info.tag_svn_revisionc                 C   s   d S r6   r2   )r9   Úvaluer2   r2   r3   rU   °   s    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.
        r@   r   rA   )rI   N)ÚcollectionsÚOrderedDictrD   r   Údict)r9   ÚfilenamerI   r2   r2   r3   Úsave_version_infoµ   s    zegg_info.save_version_infoc                 C   sB  | j | _|  ¡ | _t| jƒ}z6t|tjjƒ}|r4dnd}t	t
|| j| jf ƒƒ W n, tk
r~   tj d| j| jf ¡‚Y nX | jd kr¦| jj}|p˜i  dtj¡| _|  d¡ t| jƒd | _| jtjkràtj | j| j¡| _d| jkrò|  ¡  | j| jj_| jj}|d k	r>|j| j ¡ kr>| j|_t| jƒ|_ d | j_d S )Nz%s==%sz%s===%sz2Invalid distribution name or version syntax: %s-%sr   rP   ú	.egg-infoú-)!r:   rQ   r?   rR   r   Ú
isinstancer   r>   ZVersionÚlistr   Ú
ValueErrorÚ	distutilsÚerrorsZDistutilsOptionErrorrP   r7   Zpackage_dirÚgetr#   ÚcurdirZensure_dirnamer   rI   r$   ÚjoinÚcheck_broken_egg_infoÚmetadataZ_patched_distÚkeyÚlowerZ_versionZ_parsed_version)r9   Zparsed_versionZ
is_versionÚspecÚdirsZpdr2   r2   r3   Úfinalize_optionsÂ   s>    


ÿÿ
ÿÿ



zegg_info.finalize_optionsFc                 C   sL   |r|   |||¡ n4tj |¡rH|dkr>|s>t d||¡ 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   ÚwhatrZ   ÚdataÚforcer2   r2   r3   Úwrite_or_delete_fileó   s    	  ÿzegg_info.write_or_delete_filec                 C   sD   t  d||¡ tjs| d¡}| js@t|dƒ}| |¡ | ¡  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   Úinfor   ZPY2ÚencodeÚdry_runÚopenÚwriteÚclose)r9   rq   rZ   rr   Úfr2   r2   r3   rm     s    


zegg_info.write_filec                 C   s    t  d|¡ | jst |¡ dS )z8Delete `filename` (if not a dry run) after announcing itzdeleting %sN)r   rw   ry   r#   Úunlink)r9   rZ   r2   r2   r3   rp     s    zegg_info.delete_filec                 C   s’   |   | j¡ t | jd ¡ | jj}tdƒD ]4}|j|d | ¡ }|| |j	tj
 | j|j	¡ƒ q*tj
 | jd¡}tj
 |¡r†|  |¡ |  ¡  d S )Nzegg_info.writers)Ú	installerznative_libs.txt)ZmkpathrI   r#   Úutimer7   Zfetch_build_eggr   ZrequireZresolver:   r$   re   rn   rp   Úfind_sources)r9   r   ÚepÚwriterÚnlr2   r2   r3   Úrun  s    
zegg_info.runc                 C   s4   t j | jd¡}t| jƒ}||_| ¡  |j| _dS )z"Generate SOURCES.txt manifest filezSOURCES.txtN)	r#   r$   re   rI   Úmanifest_makerr7   Úmanifestr…   Úfilelist)r9   Zmanifest_filenameZmmr2   r2   r3   r   +  s
    
zegg_info.find_sourcesc                 C   sT   | j d }| jtjkr&tj | j|¡}tj |¡rPt d|| j	¡ | j	| _
|| _	d S )Nr\   aB  ------------------------------------------------------------------------------
Note: Your current .egg-info directory has a '-' in its name;
this will not work correctly with "setup.py develop".

Please rename %s to %s to correct this problem.
------------------------------------------------------------------------------)rQ   rP   r#   rd   r$   re   rn   r   ro   rI   rS   )r9   Zbeir2   r2   r3   rf   3  s    
 ûzegg_info.check_broken_egg_infoN)F)rE   rF   rG   ZdescriptionZuser_optionsZboolean_optionsZnegative_optrT   rH   rU   Úsetterr[   rl   rt   rm   rp   r…   r   rf   r2   r2   r2   r3   rI   ’   s.   û ÿ


1
rI   c                   @   s|   e Z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dS )r   c                 C   s   |   |¡\}}}}|dkrR|  dd |¡ ¡ |D ]}|  |¡s2t d|¡ q2nÊ|dkr’|  dd |¡ ¡ |D ]}|  |¡srt d|¡ qrnŠ|dkrÒ|  d	d |¡ ¡ |D ]}|  |¡s²t d
|¡ q²nJ|dkr|  dd |¡ ¡ |D ]}|  |¡sôt d|¡ qôn|dkr`|  d|d |¡f ¡ |D ]"}|  	||¡s:t d||¡ q:n¼|dkr¬|  d|d |¡f ¡ |D ]"}|  
||¡s†t d||¡ q†np|dkrÞ|  d| ¡ |  |¡st d|¡ n>|dkr|  d| ¡ |  |¡st d|¡ ntd| ƒ‚d S )NÚincludezinclude ú z%warning: no files found matching '%s'Úexcludezexclude z9warning: no previously-included files found matching '%s'zglobal-includezglobal-include z>warning: no files found matching '%s' anywhere in distributionzglobal-excludezglobal-exclude zRwarning: no previously-included files matching '%s' found anywhere in distributionzrecursive-includezrecursive-include %s %sz:warning: no files found matching '%s' under directory '%s'zrecursive-excludezrecursive-exclude %s %szNwarning: no previously-included files matching '%s' found under directory '%s'Úgraftzgraft z+warning: no directories found matching '%s'Úprunezprune z6no previously-included directories found matching '%s'z'this cannot happen: invalid action '%s')Z_parse_template_lineÚdebug_printre   rŠ   r   ro   rŒ   Úglobal_includeÚglobal_excludeÚrecursive_includeÚrecursive_excluder   rŽ   r   )r9   ÚlineÚactionZpatternsÚdirZdir_patternÚpatternr2   r2   r3   Úprocess_template_lineF  s|    

ÿ

ÿ


þ

ÿ þ

ÿ þ

ÿ
ÿÿzFileList.process_template_linec                 C   sR   d}t t| jƒd ddƒD ]2}|| 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   Z	predicateÚfoundr/   r2   r2   r3   Ú_remove_files  s    zFileList._remove_filesc                 C   s$   dd„ t |ƒD ƒ}|  |¡ t|ƒS )z#Include files that match 'pattern'.c                 S   s   g | ]}t j |¡s|‘qS r2   ©r#   r$   Úisdir©Ú.0r}   r2   r2   r3   Ú
<listcomp>ž  s      z$FileList.include.<locals>.<listcomp>©r   ÚextendÚbool©r9   r—   rœ   r2   r2   r3   rŠ   œ  s    
zFileList.includec                 C   s   t |ƒ}|  |j¡S )z#Exclude files that match 'pattern'.)r4   r   Úmatch©r9   r—   r§   r2   r2   r3   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   s   g | ]}t j |¡s|‘qS r2   rž   r    r2   r2   r3   r¢   ¬  s    ÿz.FileList.recursive_include.<locals>.<listcomp>T)Ú	recursive)r#   r$   re   r   r¤   r¥   )r9   r–   r—   Zfull_patternrœ   r2   r2   r3   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   ©r4   r#   r$   re   r   r§   )r9   r–   r—   r§   r2   r2   r3   r“   ±  s    zFileList.recursive_excludec                 C   s$   dd„ t |ƒD ƒ}|  |¡ t|ƒS )zInclude all files from 'dir/'.c                 S   s"   g | ]}t j |¡D ]}|‘qqS r2   )ra   rˆ   Úfindall)r¡   Z	match_dirÚitemr2   r2   r3   r¢   º  s    þz"FileList.graft.<locals>.<listcomp>r£   )r9   r–   rœ   r2   r2   r3   r   ¸  s
    þ
zFileList.graftc                 C   s   t tj |d¡ƒ}|  |j¡S )zFilter out files from 'dir/'.r   rª   )r9   r–   r§   r2   r2   r3   rŽ   Â  s    zFileList.prunec                    sJ   | j dk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 r2   ©r§   r    r­   r2   r3   r¢   Ï  s     
 z+FileList.global_include.<locals>.<listcomp>)Zallfilesr«   r4   r#   r$   re   r¤   r¥   r¦   r2   r­   r3   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¨   r2   r2   r3   r‘   Ó  s    zFileList.global_excludec                 C   s8   |  d¡r|d d… }t|ƒ}|  |¡r4| j |¡ d S )Núr™   )r<   r   Ú
_safe_pathr›   Úappend)r9   r¬   r$   r2   r2   r3   r°   Ú  s
    

zFileList.appendc                 C   s   | j  t| j|ƒ¡ d S r6   )r›   r¤   Úfilterr¯   )r9   Úpathsr2   r2   r3   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)r_   r±   r¯   r›   r8   r2   r2   r3   Ú_repairå  s    zFileList._repairc              	   C   sœ   d}t  |¡}|d kr(t d| ¡ dS t  |d¡}|d krNt ||d¡ dS z"tj |¡shtj |¡rnW dS W n& tk
r–   t ||t	 
¡ ¡ Y nX d S )Nz!'%s' not %s encodable -- skippingz''%s' in unexpected encoding -- skippingFru   T)Úunicode_utilsÚfilesys_decoder   ro   Z
try_encoder#   r$   rn   ÚUnicodeEncodeErrorÚsysÚgetfilesystemencoding)r9   r$   Zenc_warnZu_pathZ	utf8_pathr2   r2   r3   r¯   ï  s    

zFileList._safe_pathN)rE   rF   rG   r˜   r   rŠ   rŒ   r’   r“   r   rŽ   r   r‘   r°   r¤   r³   r¯   r2   r2   r2   r3   r   C  s   I


r   c                   @   s\   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S )r†   zMANIFEST.inc                 C   s   d| _ d| _d| _d| _d S )Nr   )Zuse_defaultsrŽ   Zmanifest_onlyZforce_manifestr8   r2   r2   r3   rT   
  s    z!manifest_maker.initialize_optionsc                 C   s   d S r6   r2   r8   r2   r2   r3   rl     s    zmanifest_maker.finalize_optionsc                 C   sd   t ƒ | _tj | j¡s|  ¡  |  ¡  tj | j¡r<|  	¡  |  
¡  | j ¡  | j ¡  |  ¡  d S r6   )r   rˆ   r#   r$   rn   r‡   Úwrite_manifestÚadd_defaultsÚtemplateZread_templateÚprune_file_listÚsortZremove_duplicatesr8   r2   r2   r3   r…     s    

zmanifest_maker.runc                 C   s   t  |¡}| tjd¡S )Nú/)r´   rµ   Úreplacer#   r%   )r9   r$   r2   r2   r3   Ú_manifest_normalize  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 r2   )rÀ   r    r8   r2   r3   r¢   +  s     z1manifest_maker.write_manifest.<locals>.<listcomp>zwriting manifest file '%s'N)rˆ   r³   r›   r‡   Zexecuterm   )r9   r›   Úmsgr2   r8   r3   r¹   #  s    

zmanifest_maker.write_manifestc                 C   s   |   |¡st | |¡ d S r6   )Ú_should_suppress_warningr	   ro   )r9   rÁ   r2   r2   r3   ro   /  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Á   r2   r2   r3   rÂ   3  s    z'manifest_maker._should_suppress_warningc                 C   s”   t  | ¡ |  ¡  | j | j¡ | j | j¡ ttƒ ƒ}|rJ| j 	|¡ nt
j | j¡r`|  ¡  t
j d¡rx| j d¡ |  d¡}| j |j¡ d S )Nzsetup.pyrI   )r	   rº   Zcheck_licenserˆ   r°   r»   r‡   r_   r
   r¤   r#   r$   rn   Zread_manifestÚget_finalized_commandr   rI   )r9   ZrcfilesZei_cmdr2   r2   r3   rº   :  s    


zmanifest_maker.add_defaultsc                 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   )Zis_regex)rÃ   r7   Zget_fullnamerˆ   rŽ   Z
build_baser&   r'   r#   r%   Zexclude_pattern)r9   rÄ   Zbase_dirr%   r2   r2   r3   r¼   M  s    

ÿzmanifest_maker.prune_file_listN)rE   rF   rG   r»   rT   rl   r…   rÀ   r¹   ro   ÚstaticmethodrÂ   rº   r¼   r2   r2   r2   r3   r†     s   
r†   c              	   C   s8   d  |¡}| d¡}t| dƒ}| |¡ W 5 Q R X dS )z{Create a file with the specified name and write 'contents' (a
    sequence of strings without line terminators) to it.
    Ú
ru   rv   N)re   rx   rz   r{   )rZ   Úcontentsr}   r2   r2   r3   rm   W  s    

rm   c              	   C   s|   t  d|¡ | jsx| jj}| j|j |_}| j|j |_}z| 	| j
¡ W 5 || |_|_X t| jdd ƒ}t | j
|¡ d S )Nz
writing %sZzip_safe)r   rw   ry   r7   rg   rR   r>   rQ   r:   Úwrite_pkg_inforI   Úgetattrr   Zwrite_safety_flag)ÚcmdÚbasenamerZ   rg   ZoldverZoldnameZsafer2   r2   r3   rÈ   d  s    rÈ   c                 C   s   t j |¡rt d¡ d S )NzsWARNING: 'depends.txt' is not used by setuptools 0.6!
Use the install_requires/extras_require setup() args instead.)r#   r$   rn   r   ro   ©rÊ   rË   rZ   r2   r2   r3   Úwarn_depends_obsoletew  s    ÿrÍ   c                 C   s0   t |pdƒ}dd„ }t|t|ƒƒ}|  |¡ d S )Nr2   c                 S   s   | d S )NrÆ   r2   )r”   r2   r2   r3   Ú	append_cr‚  s    z&_write_requirements.<locals>.append_cr)r   r   ÚsortedÚ
writelines)ÚstreamZreqsÚlinesrÎ   r2   r2   r3   Ú_write_requirements  s    rÓ   c                 C   sj   | j }t ¡ }t||jƒ |jp"i }t|ƒD ]&}| djf t	ƒ Ž¡ t||| ƒ q,|  
d|| ¡ ¡ d S )Nz
[{extra}]
Zrequirements)r7   r   ÚStringIOrÓ   Zinstall_requiresÚextras_requirerÏ   r{   ÚformatÚvarsrt   Úgetvalue)rÊ   rË   rZ   Zdistrr   rÕ   Zextrar2   r2   r3   Úwrite_requirementsˆ  s    
rÙ   c                 C   s,   t  ¡ }t|| jjƒ |  d|| ¡ ¡ d S )Nzsetup-requirements)ÚiorÔ   rÓ   r7   Zsetup_requiresrt   rØ   )rÊ   rË   rZ   rr   r2   r2   r3   Úwrite_setup_requirements“  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 )Ú.r   r   )r"   )r¡   Úkr2   r2   r3   r¢   ›  s   ÿz(write_toplevel_names.<locals>.<listcomp>ztop-level namesrÆ   )rY   Úfromkeysr7   Ziter_distribution_namesrm   re   rÏ   )rÊ   rË   rZ   Zpkgsr2   r2   r3   Úwrite_toplevel_names™  s    þÿrß   c                 C   s   t | ||dƒ d S )NT)Ú	write_argrÌ   r2   r2   r3   Úoverwrite_arg£  s    rá   Fc                 C   sH   t j |¡d }t| j|d ƒ}|d k	r4d |¡d }|  ||||¡ d S )Nr   rÆ   )r#   r$   ÚsplitextrÉ   r7   re   rt   )rÊ   rË   rZ   rs   ÚargnamerV   r2   r2   r3   rà   §  s
    rà   c                 C   s¤   | j j}t|tjƒs|d kr"|}nn|d k	rg }t| ¡ ƒD ]J\}}t|tjƒsrt ||¡}d 	tt
t| ¡ ƒƒ¡}| d||f ¡ q:d 	|¡}|  d||d¡ d S )NrÆ   z	[%s]
%s

r   zentry pointsT)r7   Zentry_pointsr^   r   Zstring_typesrÏ   Úitemsr   Zparse_groupre   r   ÚstrÚvaluesr°   rt   )rÊ   rË   rZ   r‚   rr   ZsectionrÇ   r2   r2   r3   Úwrite_entries¯  s    
rç   c               
   C   sj   t  dt¡ tj d¡rft d¡>} | D ]2}t 	d|¡}|r(t
| d¡ƒ  W  5 Q R £ S q(W 5 Q R X dS )zd
    Get a -r### off of PKG-INFO Version in case this is an sdist of
    a subversion revision.
    z$get_pkg_info_revision is deprecated.zPKG-INFOzVersion:.*-r(\d+)\s*$r   r   )Úwarningsro   ÚEggInfoDeprecationWarningr#   r$   rn   rÚ   rz   r&   r§   ÚintÚgroup)r}   r”   r§   r2   r2   r3   Úget_pkg_info_revisionÀ  s     ÿ*rì   c                   @   s   e Zd ZdZdS )ré   z?Deprecated behavior warning for EggInfo, bypassing suppression.N)rE   rF   rG   Ú__doc__r2   r2   r2   r3   ré   Ð  s   ré   )F)=rí   Zdistutils.filelistr   Z	_FileListZdistutils.errorsr   Zdistutils.utilr   ra   r   r#   r&   r·   rÚ   rè   rB   rW   Zsetuptools.externr   Zsetuptools.extern.six.movesr   Z
setuptoolsr   Zsetuptools.command.sdistr	   r
   Zsetuptools.command.setoptr   Zsetuptools.commandr   Zpkg_resourcesr   r   r   r   r   r   r   r   Zsetuptools.unicode_utilsr´   Zsetuptools.globr   r   r   r4   r5   rI   r†   rm   rÈ   rÍ   rÓ   rÙ   rÛ   rß   rá   rà   rç   rì   ré   r2   r2   r2   r3   Ú<module>   sX   (S 2 EP	

