403Webshell
Server IP : 127.0.0.1  /  Your IP : 216.73.216.109
Web Server : Apache/2.4.54 (Win64) OpenSSL/1.1.1q PHP/8.1.10
System : Windows NT DESKTOP-E5T4RUN 10.0 build 19045 (Windows 10) AMD64
User : SERVERWEB ( 0)
PHP Version : 8.1.10
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : OFF |  Perl : OFF |  Python : OFF |  Sudo : OFF |  Pkexec : OFF
Directory :  C:/cygwin64/lib/python3.6/site-packages/setuptools/command/__pycache__/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : C:/cygwin64/lib/python3.6/site-packages/setuptools/command/__pycache__/egg_info.cpython-36.pyc
3

��af�@s�dZddlmZddlmZddlmZddlm	Z	ddlZddlZddl
Z
ddlZddlZddl
Z
ddlZddlZddlZddlZddlmZddlmZdd	lmZdd
lmZddlmZddlmZmZmZmZm Z m!Z!m"Z"m#Z#ddl$j%Z%dd
l&m'Z'ddl(m)Z)ddlm*Z*dd�Z+Gdd�d�Z,Gdd�de,e�Z-Gdd�de�ZGdd�de�Z.dd�Z/dd�Z0dd�Z1d d!�Z2d"d#�Z3d$d%�Z4d&d'�Z5d(d)�Z6d3d+d,�Z7d-d.�Z8d/d0�Z9Gd1d2�d2e*�Z:dS)4zUsetuptools.command.egg_info

Create a distribution's .egg-info directory and contents�)�FileList)�DistutilsInternalError)�convert_path)�logN)�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)�SetuptoolsDeprecationWarningcCs�d}|jtjj�}tjtj�}d|f}�x�t|�D�]�\}}|t|�dk}|dkrv|rd|d7}q4|d||f7}q4d}t|�}	�x:||	k�r�||}
|
dkr�||d7}�n|
d	kr�||7}n�|
d
k�r�|d}||	kr�||dkr�|d}||	k�r||dk�r|d}x&||	k�r6||dk�r6|d}�qW||	k�rR|tj|
�7}nR||d|�}d}
|ddk�r�d
}
|dd�}|
tj|�7}
|d|
f7}|}n|tj|
�7}|d7}q�W|s4||7}q4W|d7}tj|tj	tj
Bd�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.*z
(?:%s+%s)*r�*�?�[�!�]�^Nz[%s]z\Z)�flags)�split�os�path�sep�re�escape�	enumerate�len�compile�	MULTILINE�DOTALL)rZpat�chunksr"Z
valid_char�c�chunkZ
last_chunk�iZ	chunk_len�charZinner_i�innerZ
char_class�r0�/usr/lib/python3.6/egg_info.py�translate_pattern#sV




r2c@s@eZdZdZdZedd��Zdd�Zdd�Zdd	�Z	ee	�Z
dS)
�
InfoCommonNcCst|jj��S)N)r�distributionZget_name)�selfr0r0r1�namezszInfoCommon.namecCst|j|jj���S)N)r�
_maybe_tagr4Zget_version)r5r0r0r1�tagged_version~szInfoCommon.tagged_versioncCs |jr|j|j�r|S||jS)z�
        egg_info may be called more than once for a distribution,
        in which case the version string already contains all tags.
        )�vtags�endswith)r5�versionr0r0r1r7�szInfoCommon._maybe_tagcCs,d}|jr||j7}|jr(|tjd�7}|S)Nrz-%Y%m%d)�	tag_build�tag_date�timeZstrftime)r5r;r0r0r1�tags�s
zInfoCommon.tags)�__name__�
__module__�__qualname__r<r=�propertyr6r8r7r?r9r0r0r0r1r3vs
r3c@s�eZdZdZd%d&d'd(gZdgZddiZdd�Zedd��Z	e	j
dd��Z	dd�Zdd�Zd)dd�Z
dd�Zdd�Zdd�Zd d!�Zd"d#�Zd$S)*�egg_infoz+create a distribution's .egg-info directory�	egg-base=�e�Ldirectory containing .egg-info directories (default: top of the source tree)�tag-date�d�0Add date stamp (e.g. 20050528) to version number�
tag-build=�b�-Specify explicit tag to add to version number�no-date�D�"Don't include date stamp [default]cCs"d|_d|_d|_d|_d|_dS)NF)�egg_base�egg_namerD�egg_version�broken_egg_info)r5r0r0r1�initialize_options�s
zegg_info.initialize_optionscCsdS)Nr0)r5r0r0r1�tag_svn_revision�szegg_info.tag_svn_revisioncCsdS)Nr0)r5�valuer0r0r1rV�scCs0tj�}|j�|d<d|d<t|t|d��dS)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<rr=)rDN)�collections�OrderedDictr?r	�dict)r5�filenamerDr0r0r1�save_version_info�szegg_info.save_version_infocCsT|j|_|j�|_t|j�}y6t|tjj�}|r4dnd}t	t
||j|jf��Wn<tk
r�}z tj
jd|j|jf�|�WYdd}~XnX|jdkr�|jj}|p�ijdtj�|_|jd�t|j�d|_|jtjkr�tjj|j|j�|_d|jk�r|j�|j|jj_|jj}|dk	�rP|j|jj�k�rP|j|_t|j�|_ d|j_dS)Nz%s==%sz%s===%sz2Invalid distribution name or version syntax: %s-%srrQz	.egg-info�-)!r6rRr8rSr
�
isinstancerr;ZVersion�listr�
ValueError�	distutils�errorsZDistutilsOptionErrorrQr4Zpackage_dir�getr �curdirZensure_dirnamerrDr!�join�check_broken_egg_info�metadataZ
_patched_dist�key�lowerZ_versionZ_parsed_version)r5Zparsed_versionZ
is_version�specrF�dirs�pdr0r0r1�finalize_options�s8



zegg_info.finalize_optionsFcCsN|r|j|||�n6tjj|�rJ|dkr@|r@tjd||�dS|j|�dS)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)r5�whatr[�data�forcer0r0r1�write_or_delete_file�s	
zegg_info.write_or_delete_filecCs>tjd||�|jd�}|js:t|d�}|j|�|j�dS)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.
        zwriting %s to %szutf-8�wbN)r�info�encode�dry_run�open�write�close)r5rrr[rs�fr0r0r1rn
s


zegg_info.write_filecCs tjd|�|jstj|�dS)z8Delete `filename` (if not a dry run) after announcing itzdeleting %sN)rrwryr �unlink)r5r[r0r0r1rqszegg_info.delete_filecCs�|j|j�tj|jd�|jj}x@td�D]4}|j|d�|j�}|||j	tj
j|j|j	��q,Wtj
j|jd�}tj
j|�r�|j
|�|j�dS)Nzegg_info.writers)�	installerznative_libs.txt)ZmkpathrDr �utimer4Zfetch_build_eggrZrequireZresolver6r!rerorq�find_sources)r5r�ep�writer�nlr0r0r1�runs 
zegg_info.runcCs4tjj|jd�}t|j�}||_|j�|j|_dS)z"Generate SOURCES.txt manifest filezSOURCES.txtN)	r r!rerD�manifest_makerr4�manifestr��filelist)r5Zmanifest_filenameZmmr0r0r1r�-s

zegg_info.find_sourcescCsd|jd}|jtjkr&tjj|j|�}tjj|�r`tjddddd||j	�|j	|_
||_	dS)Nz	.egg-infor]�Nz�
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.
)rRrQr rdr!rerorrprDrT)r5Zbeir0r0r1rf5s

zegg_info.check_broken_egg_infoN)rErFrG)rHrIrJ)rKrLrM)rNrOrP)F)r@rArB�descriptionZuser_optionsZboolean_optionsZnegative_optrUrCrV�setterr\rmrurnrqr�r�rfr0r0r0r1rD�s$

1

rDc@s|eZdZdd�Zdd�Zdd�Zdd�Zd	d
�Zdd�Zd
d�Z	dd�Z
dd�Zdd�Zdd�Z
dd�Zdd�Zdd�ZdS)rc
Cs|j|�\}}}}|j|j|j|jtj|j|�tj|j|�|j	|j
d�}dddddddd	d�}y||}Wn$tk
r�td
j
|d���YnX|jd�}	|dkr�|g}|	r�|fnf}
||}|jdj|g|	r�|gng|��x&|D]}||�s�tj||f|
��q�WdS)N)�include�excludezglobal-includezglobal-excludezrecursive-includezrecursive-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/this cannot happen: invalid action '{action!s}')�actionz
recursive-r�r�� >r�r�)Z_parse_template_liner�r��global_include�global_exclude�	functools�partial�recursive_include�recursive_excluder�r��KeyErrorr�format�
startswith�debug_printrerrp)
r5�liner�Zpatterns�dirZdir_patternZ
action_mapZlog_mapZprocess_actionZaction_is_recursiveZextra_log_argsZlog_tmpl�patternr0r0r1�process_template_lineHsJ



zFileList.process_template_linecCsVd}xLtt|j�ddd�D]2}||j|�r|jd|j|�|j|=d}qW|S)z�
        Remove all files from the file list that match the predicate.
        Return True if any matching files were removed
        Frz
 removing T���r�)�ranger&�filesr�)r5�	predicate�foundr-r0r0r1�
_remove_files�szFileList._remove_filescCs$dd�t|�D�}|j|�t|�S)z#Include files that match 'pattern'.cSsg|]}tjj|�s|�qSr0)r r!�isdir)�.0r}r0r0r1�
<listcomp>�sz$FileList.include.<locals>.<listcomp>)r�extend�bool)r5r�r�r0r0r1r��s
zFileList.includecCst|�}|j|j�S)z#Exclude files that match 'pattern'.)r2r��match)r5r�r�r0r0r1r��szFileList.excludecCs8tjj|d|�}dd�t|dd�D�}|j|�t|�S)zN
        Include all files anywhere in 'dir/' that match the pattern.
        z**cSsg|]}tjj|�s|�qSr0)r r!r�)r�r}r0r0r1r��sz.FileList.recursive_include.<locals>.<listcomp>T)�	recursive)r r!rerr�r�)r5r�r�Zfull_patternr�r0r0r1r��s
zFileList.recursive_includecCs ttjj|d|��}|j|j�S)zM
        Exclude any file anywhere in 'dir/' that match the pattern.
        z**)r2r r!rer�r�)r5r�r�r�r0r0r1r��szFileList.recursive_excludecCs$dd�t|�D�}|j|�t|�S)zInclude all files from 'dir/'.cSs"g|]}tjj|�D]}|�qqSr0)rar��findall)r�Z	match_dir�itemr0r0r1r��sz"FileList.graft.<locals>.<listcomp>)rr�r�)r5r�r�r0r0r1r��s
zFileList.graftcCsttjj|d��}|j|j�S)zFilter out files from 'dir/'.z**)r2r r!rer�r�)r5r�r�r0r0r1r��szFileList.prunecsJ|jdkr|j�ttjjd|����fdd�|jD�}|j|�t|�S)z�
        Include all files anywhere in the current directory that match the
        pattern. This is very inefficient on large file trees.
        Nz**csg|]}�j|�r|�qSr0)r�)r�r})r�r0r1r��sz+FileList.global_include.<locals>.<listcomp>)Zallfilesr�r2r r!rer�r�)r5r�r�r0)r�r1r��s

zFileList.global_includecCsttjjd|��}|j|j�S)zD
        Exclude all files anywhere that match the pattern.
        z**)r2r r!rer�r�)r5r�r�r0r0r1r��szFileList.global_excludecCs8|jd�r|dd�}t|�}|j|�r4|jj|�dS)N�
rr�)r:r�
_safe_pathr��append)r5r�r!r0r0r1r��s


zFileList.appendcCs|jjt|j|��dS)N)r�r��filterr�)r5�pathsr0r0r1r��szFileList.extendcCstt|j|j��|_dS)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�)r5r0r0r1�_repair�szFileList._repaircCs�d}tj|�}|dkr(tjd|�dStj|d�}|dkrNtj||d�dSy tjj|�shtjj|�rldSWn&tk
r�tj||t	j
��YnXdS)Nz!'%s' not %s encodable -- skippingz''%s' in unexpected encoding -- skippingFzutf-8T)�
unicode_utils�filesys_decoderrpZ
try_encoder r!ro�UnicodeEncodeError�sys�getfilesystemencoding)r5r!Zenc_warnZu_pathZ	utf8_pathr0r0r1r��s
zFileList._safe_pathN)r@rArBr�r�r�r�r�r�r�r�r�r�r�r�r�r�r0r0r0r1rEsM



rc@sleZdZdZdd�Zdd�Zdd�Zdd	�Zd
d�Zdd
�Z	e
dd��Zdd�Zdd�Z
dd�Zdd�ZdS)r�zMANIFEST.incCsd|_d|_d|_d|_dS)Nr)Zuse_defaultsr�Z
manifest_onlyZforce_manifest)r5r0r0r1rUsz!manifest_maker.initialize_optionscCsdS)Nr0)r5r0r0r1rmszmanifest_maker.finalize_optionscCslt�|_tjj|j�s|j�|j�tjj|j�r<|j	�|j
�|j�|jj�|jj
�|j�dS)N)rr�r r!ror��write_manifest�add_defaults�templateZ
read_template�add_license_files�prune_file_list�sortZremove_duplicates)r5r0r0r1r�s

zmanifest_maker.runcCstj|�}|jtjd�S)N�/)r�r��replacer r")r5r!r0r0r1�_manifest_normalize&s
z"manifest_maker._manifest_normalizecsB�jj��fdd��jjD�}d�j}�jt�j|f|�dS)zo
        Write the file list in 'self.filelist' to the manifest file
        named by 'self.manifest'.
        csg|]}�j|��qSr0)r�)r�r})r5r0r1r�2sz1manifest_maker.write_manifest.<locals>.<listcomp>zwriting manifest file '%s'N)r�r�r�r�Zexecutern)r5r��msgr0)r5r1r�*s

zmanifest_maker.write_manifestcCs|j|�stj||�dS)N)�_should_suppress_warningrrp)r5r�r0r0r1rp6s
zmanifest_maker.warncCstjd|�S)z;
        suppress missing-file warnings from sdist
        zstandard file .*not found)r#r�)r�r0r0r1r�:sz'manifest_maker._should_suppress_warningcCs�tj|�|jj|j�|jj|j�tt��}|rB|jj|�nt	j
j|j�rX|j�t	j
jd�rp|jjd�|j
d�}|jj|j�dS)Nzsetup.pyrD)rr�r�r�r�r�r_rr�r r!roZ
read_manifest�get_finalized_commandr�rD)r5ZrcfilesZei_cmdr0r0r1r�As


zmanifest_maker.add_defaultscCs8|jjjpg}x|D]}tjd|�qW|jj|�dS)Nzadding license file '%s')r4rg�
license_filesrrwr�r�)r5r�Zlfr0r0r1r�Ss

z manifest_maker.add_license_filescCsZ|jd�}|jj�}|jj|j�|jj|�tjtj	�}|jj
d|d|dd�dS)N�buildz(^|z)(RCS|CVS|\.svn)r)Zis_regex)r�r4Zget_fullnamer�r�Z
build_baser#r$r r"Zexclude_pattern)r5r�Zbase_dirr"r0r0r1r�Zs

zmanifest_maker.prune_file_listcCs&t|d�r|j�Stjdt�|j�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�Custom 'build_py' does not implement 'get_data_files_without_manifest'.
Please extend command classes from setuptools instead of distutils.)�hasattrr��warningsrprZget_data_files)r5Zbuild_pyr0r0r1�_safe_data_filescs

zmanifest_maker._safe_data_filesN)r@rArBr�rUrmr�r�r�rp�staticmethodr�r�r�r�r�r0r0r0r1r�
s
	r�c	Cs8dj|�}|jd�}t|d��}|j|�WdQRXdS)z{Create a file with the specified name and write 'contents' (a
    sequence of strings without line terminators) to it.
    �
zutf-8rvN)rerxrzr{)r[�contentsr}r0r0r1rnys

rncCs|tjd|�|jsx|jj}|j|j|_}|j|j|_}z|j	|j
�Wd|||_|_Xt|jdd�}tj
|j
|�dS)Nz
writing %sZzip_safe)rrwryr4rgrSr;rRr6�write_pkg_inforD�getattrr
Zwrite_safety_flag)�cmd�basenamer[rgZoldverZoldnameZsafer0r0r1r��sr�cCstjj|�rtjd�dS)NzsWARNING: 'depends.txt' is not used by setuptools 0.6!
Use the install_requires/extras_require setup() args instead.)r r!rorrp)r�r�r[r0r0r1�warn_depends_obsolete�sr�cCs,t|pf�}dd�}t||�}|j|�dS)NcSs|dS)Nr�r0)r�r0r0r1�	append_cr�sz&_write_requirements.<locals>.append_cr)r�map�
writelines)�streamZreqs�linesr�r0r0r1�_write_requirements�s
r�cCsn|j}tj�}t||j�|jp"i}x2t|�D]&}|jdjft	���t|||�q.W|j
d||j��dS)Nz
[{extra}]
Zrequirements)r4�io�StringIOr�Zinstall_requires�extras_require�sortedr{r��varsru�getvalue)r�r�r[Zdistrsr�Zextrar0r0r1�write_requirements�s
r�cCs,tj�}t||jj�|jd||j��dS)Nzsetup-requirements)r�r�r�r4Zsetup_requiresrur�)r�r�r[rsr0r0r1�write_setup_requirements�sr�cCs:tjdd�|jj�D��}|jd|djt|��d�dS)NcSsg|]}|jdd�d�qS)�.rr)r)r��kr0r0r1r��sz(write_toplevel_names.<locals>.<listcomp>ztop-level namesr�)rZ�fromkeysr4Ziter_distribution_namesrnrer�)r�r�r[Zpkgsr0r0r1�write_toplevel_names�sr�cCst|||d�dS)NT)�	write_arg)r�r�r[r0r0r1�
overwrite_arg�sr�FcCsHtjj|�d}t|j|d�}|dk	r4dj|�d}|j||||�dS)Nrr�)r r!�splitextr�r4reru)r�r�r[rtZargnamerWr0r0r1r��s
r�cCs�|jj}t|t�s|dkr |}np|dk	r�g}xXt|j��D]H\}}t|t�sptj||�}djtt	t|j
����}|jd||f�q:Wdj|�}|jd||d�dS)Nr�z	[%s]
%s

rzentry pointsT)
r4Zentry_pointsr^�strr��itemsrZparse_grouprer��valuesr�ru)r�r�r[r�rs�sectionr�r0r0r1�
write_entries�s

r�cCs^tjdt�tjjd�rZtjd��2}x*|D]"}tj	d|�}|r*t
|jd��Sq*WWdQRXdS)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.zPKG-INFOzVersion:.*-r(\d+)\s*$rNr)r�rp�EggInfoDeprecationWarningr r!ror�rzr#r��int�group)r}r�r�r0r0r1�get_pkg_info_revision�s
r�c@seZdZdZdS)r�z?Deprecated behavior warning for EggInfo, bypassing suppression.N)r@rArB�__doc__r0r0r0r1r��sr�)F);r�Zdistutils.filelistrZ	_FileListZdistutils.errorsrZdistutils.utilrrarr�r r#r�r�r�r>rXZ
setuptoolsrZsetuptools.command.sdistrrZsetuptools.command.setoptr	Zsetuptools.commandr
Z
pkg_resourcesrrr
rrrrrZsetuptools.unicode_utilsr�Zsetuptools.globrZsetuptools.externrrr2r3rDr�rnr�r�r�r�r�r�r�r�r�r�r�r0r0r0r1�<module>sV(
S1Il
	



Youez - 2016 - github.com/yon3zu
LinuXploit