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.7/site-packages/setuptools/command/__pycache__/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : C:/cygwin64/lib/python3.7/site-packages/setuptools/command/__pycache__/egg_info.cpython-37.pyc
B

�af�@s�dZddlmZddlmZddlmZddlm	Z	ddlZddlZddl
Z
ddlZddlZddl
Z
ddlZddlZddlZddlZddlmZddlmZdd	lmZdd
lmZddlmZddlmZmZmZmZm Z m!Z!m"Z"m#Z#ddl$m%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}|�tjj�}t�tj�}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|t�|
�7}nR||d|�}d}
|ddk�r�d
}
|dd�}|
t�|�7}
|d|
f7}|}n|t�|
�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)rZpatZchunksr"Z
valid_char�c�chunkZ
last_chunk�iZ	chunk_len�charZinner_i�innerZ
char_class�r/�?/usr/lib/python3.7/site-packages/setuptools/command/egg_info.py�translate_pattern#sV




r1c@s@eZdZdZdZedd��Zdd�Zdd�Zdd	�Z	ee	�Z
dS)
�
InfoCommonNcCst|j���S)N)r�distributionZget_name)�selfr/r/r0�namezszInfoCommon.namecCst|�|j����S)N)r�
_maybe_tagr3Zget_version)r4r/r/r0�tagged_version~szInfoCommon.tagged_versioncCs |jr|�|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)r4�versionr/r/r0r6�szInfoCommon._maybe_tagcCs,d}|jr||j7}|jr(|t�d�7}|S)Nrz-%Y%m%d)�	tag_build�tag_date�timeZstrftime)r4r:r/r/r0�tags�s
zInfoCommon.tags)�__name__�
__module__�__qualname__r;r<�propertyr5r7r6r>r8r/r/r/r0r2vs
r2c@s�eZdZdZddddgZdgZddiZdd	�Zed
d��Z	e	j
dd��Z	d
d�Zdd�Zddd�Z
dd�Zdd�Zdd�Zdd�Zdd�ZdS) �egg_infoz+create a distribution's .egg-info directory)z	egg-base=�ezLdirectory containing .egg-info directories (default: top of the source tree))ztag-date�dz0Add date stamp (e.g. 20050528) to version number)z
tag-build=�bz-Specify explicit tag to add to version number)zno-date�Dz"Don't include date stamp [default]ztag-datezno-datecCs"d|_d|_d|_d|_d|_dS)NF)�egg_base�egg_namerC�egg_version�broken_egg_info)r4r/r/r0�initialize_options�s
zegg_info.initialize_optionscCsdS)Nr/)r4r/r/r0�tag_svn_revision�szegg_info.tag_svn_revisioncCsdS)Nr/)r4�valuer/r/r0rM�scCs0t��}|��|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<)rCN)�collections�OrderedDictr>r	�dict)r4�filenamerCr/r/r0�save_version_info�szegg_info.save_version_infoc
CsT|j|_|��|_t|j�}y6t|tjj�}|r4dnd}t	t
||j|jf��Wn<tk
r�}ztj
�d|j|jf�|�Wdd}~XYnX|jdkr�|jj}|p�i�dtj�|_|�d�t|j�d|_|jtjkr�tj�|j|j�|_d|jk�r|��|j|jj_|jj}|dk	�rP|j|j��k�rP|j|_t|j�|_ d|j_dS)Nz%s==%sz%s===%sz2Invalid distribution name or version syntax: %s-%srrHz	.egg-info�-)!r5rIr7rJr
�
isinstancerr:ZVersion�listr�
ValueError�	distutils�errorsZDistutilsOptionErrorrHr3Zpackage_dir�getr �curdirZensure_dirnamerrCr!�join�check_broken_egg_info�metadataZ
_patched_dist�key�lowerZ_versionZ_parsed_version)r4Zparsed_versionZ
is_version�specrD�dirs�pdr/r/r0�finalize_options�s8



zegg_info.finalize_optionsFcCsL|r|�|||�n4tj�|�rH|dkr>|s>t�d||�dS|�|�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)r4�whatrR�data�forcer/r/r0�write_or_delete_file�s	
zegg_info.write_or_delete_filecCs>t�d||�|�d�}|js:t|d�}|�|�|��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)r4rirRrj�fr/r/r0re
s


zegg_info.write_filecCs t�d|�|jst�|�dS)z8Delete `filename` (if not a dry run) after announcing itzdeleting %sN)rrnrpr �unlink)r4rRr/r/r0rhszegg_info.delete_filecCs�|�|j�t�|jd�|jj}x@td�D]4}|j|d�|��}|||j	tj
�|j|j	��q,Wtj
�|jd�}tj
�|�r�|�
|�|��dS)Nzegg_info.writers)�	installerznative_libs.txt)ZmkpathrCr �utimer3Zfetch_build_eggrZrequireZresolver5r!r\rfrh�find_sources)r4rv�ep�writer�nlr/r/r0�runs 
zegg_info.runcCs4tj�|jd�}t|j�}||_|��|j|_dS)z"Generate SOURCES.txt manifest filezSOURCES.txtN)	r r!r\rC�manifest_makerr3�manifestr|�filelist)r4Zmanifest_filenameZmmr/r/r0rx-s

zegg_info.find_sourcescCsT|jd}|jtjkr&tj�|j|�}tj�|�rPt�d||j	�|j	|_
||_	dS)Nz	.egg-infoaB------------------------------------------------------------------------------
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.
------------------------------------------------------------------------------)rIrHr r[r!r\rfrrgrCrK)r4Zbeir/r/r0r]5s

zegg_info.check_broken_egg_infoN)F)r?r@rA�descriptionZuser_optionsZboolean_optionsZnegative_optrLrBrM�setterrSrdrlrerhr|rxr]r/r/r/r0rC�s$

1

rCc@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|jt�|j|�t�|j|�|j	|j
d�}dddddddd	d�}y||}Wn$tk
r�td
j
|d���YnX|�d�}	|d
kr�|g}|	r�|fnd}
||}|�d�|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/� )Z_parse_template_liner�r��global_include�global_exclude�	functools�partial�recursive_include�recursive_excluder�r��KeyErrorr�format�
startswith�debug_printr\rrg)
r4�liner�Zpatterns�dirZdir_patternZ
action_mapZlog_mapZprocess_actionZaction_is_recursiveZextra_log_argsZlog_tmpl�patternr/r/r0�process_template_lineHsJ



zFileList.process_template_linecCsVd}xLtt|j�ddd�D]2}||j|�r|�d|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
        Fr���z
 removing T)�ranger&�filesr�)r4Z	predicate�foundr,r/r/r0�
_remove_files�szFileList._remove_filescCs$dd�t|�D�}|�|�t|�S)z#Include files that match 'pattern'.cSsg|]}tj�|�s|�qSr/)r r!�isdir)�.0rtr/r/r0�
<listcomp>�sz$FileList.include.<locals>.<listcomp>)r�extend�bool)r4r�r�r/r/r0r��s
zFileList.includecCst|�}|�|j�S)z#Exclude files that match 'pattern'.)r1r��match)r4r�r�r/r/r0r��szFileList.excludecCs8tj�|d|�}dd�t|dd�D�}|�|�t|�S)zN
        Include all files anywhere in 'dir/' that match the pattern.
        z**cSsg|]}tj�|�s|�qSr/)r r!r�)r�rtr/r/r0r��sz.FileList.recursive_include.<locals>.<listcomp>T)�	recursive)r r!r\rr�r�)r4r�r�Zfull_patternr�r/r/r0r��s
zFileList.recursive_includecCs ttj�|d|��}|�|j�S)zM
        Exclude any file anywhere in 'dir/' that match the pattern.
        z**)r1r r!r\r�r�)r4r�r�r�r/r/r0r��szFileList.recursive_excludecCs$dd�t|�D�}|�|�t|�S)zInclude all files from 'dir/'.cSs"g|]}tj�|�D]}|�qqSr/)rXr�findall)r�Z	match_dir�itemr/r/r0r��sz"FileList.graft.<locals>.<listcomp>)rr�r�)r4r�r�r/r/r0r��s
zFileList.graftcCsttj�|d��}|�|j�S)zFilter out files from 'dir/'.z**)r1r r!r\r�r�)r4r�r�r/r/r0r��szFileList.prunecsJ|jdkr|��ttj�d|����fdd�|jD�}|�|�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|]}��|�r|�qSr/)r�)r�rt)r�r/r0r��sz+FileList.global_include.<locals>.<listcomp>)Zallfilesr�r1r r!r\r�r�)r4r�r�r/)r�r0r��s

zFileList.global_includecCsttj�d|��}|�|j�S)zD
        Exclude all files anywhere that match the pattern.
        z**)r1r r!r\r�r�)r4r�r�r/r/r0r��szFileList.global_excludecCs8|�d�r|dd�}t|�}|�|�r4|j�|�dS)N�
r�)r9r�
_safe_pathr��append)r4r�r!r/r/r0r��s


zFileList.appendcCs|j�t|j|��dS)N)r�r��filterr�)r4�pathsr/r/r0r��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)rVr�r�r�)r4r/r/r0�_repair�szFileList._repairc	Cs�d}t�|�}|dkr(t�d|�dSt�|d�}|dkrNt�||d�dSy tj�|�shtj�|�rldSWn&tk
r�t�||t	�
��YnXdS)Nz!'%s' not %s encodable -- skippingz''%s' in unexpected encoding -- skippingFzutf-8T)�
unicode_utils�filesys_decoderrgZ
try_encoder r!rf�UnicodeEncodeError�sys�getfilesystemencoding)r4r!Zenc_warnZu_pathZ	utf8_pathr/r/r0r��s
zFileList._safe_pathN)r?r@rAr�r�r�r�r�r�r�r�r�r�r�r�r�r�r/r/r/r0rEsM



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)r4r/r/r0rLsz!manifest_maker.initialize_optionscCsdS)Nr/)r4r/r/r0rdszmanifest_maker.finalize_optionscCslt�|_tj�|j�s|��|��tj�|j�r<|�	�|�
�|��|j��|j�
�|��dS)N)rrr r!rfr~�write_manifest�add_defaults�templateZ
read_template�add_license_files�prune_file_list�sortZremove_duplicates)r4r/r/r0r|s

zmanifest_maker.runcCst�|�}|�tjd�S)N�/)r�r��replacer r")r4r!r/r/r0�_manifest_normalize&s
z"manifest_maker._manifest_normalizecsB�j���fdd��jjD�}d�j}��t�j|f|�dS)zo
        Write the file list in 'self.filelist' to the manifest file
        named by 'self.manifest'.
        csg|]}��|��qSr/)r�)r�rt)r4r/r0r�2sz1manifest_maker.write_manifest.<locals>.<listcomp>zwriting manifest file '%s'N)rr�r�r~Zexecutere)r4r��msgr/)r4r0r�*s

zmanifest_maker.write_manifestcCs|�|�st�||�dS)N)�_should_suppress_warningrrg)r4r�r/r/r0rg6s
zmanifest_maker.warncCst�d|�S)z;
        suppress missing-file warnings from sdist
        zstandard file .*not found)r#r�)r�r/r/r0r�:sz'manifest_maker._should_suppress_warningcCs�t�|�|j�|j�|j�|j�tt��}|rB|j�|�nt	j
�|j�rX|��t	j
�d�rp|j�d�|�
d�}|j�|j�dS)Nzsetup.pyrC)rr�rr�r�r~rVrr�r r!rfZ
read_manifest�get_finalized_commandr�rC)r4ZrcfilesZei_cmdr/r/r0r�As


zmanifest_maker.add_defaultscCs8|jjjpg}x|D]}t�d|�qW|j�|�dS)Nzadding license file '%s')r3r^�
license_filesrrnrr�)r4r�Zlfr/r/r0r�Ss

z manifest_maker.add_license_filescCsZ|�d�}|j��}|j�|j�|j�|�t�tj	�}|jj
d|d|dd�dS)N�buildz(^|z)(RCS|CVS|\.svn)r)Zis_regex)r�r3Zget_fullnamerr�Z
build_baser#r$r r"Zexclude_pattern)r4r�Zbase_dirr"r/r/r0r�Zs

zmanifest_maker.prune_file_listcCs&t|d�r|��St�dt�|��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��warningsrgrZget_data_files)r4Zbuild_pyr/r/r0�_safe_data_filescs

zmanifest_maker._safe_data_filesN)r?r@rAr�rLrdr|r�r�rg�staticmethodr�r�r�r�r�r/r/r/r0r}
s
	r}c	Cs8d�|�}|�d�}t|d��}|�|�WdQRXdS)z{Create a file with the specified name and write 'contents' (a
    sequence of strings without line terminators) to it.
    �
zutf-8rmN)r\rorqrr)rR�contentsrtr/r/r0reys

rec	Cs|t�d|�|jsx|jj}|j|j|_}|j|j|_}z|�	|j
�Wd|||_|_Xt|jdd�}t�
|j
|�dS)Nz
writing %sZzip_safe)rrnrpr3r^rJr:rIr5�write_pkg_inforC�getattrr
Zwrite_safety_flag)�cmd�basenamerRr^ZoldverZoldnameZsafer/r/r0r��sr�cCstj�|�rt�d�dS)NzsWARNING: 'depends.txt' is not used by setuptools 0.6!
Use the install_requires/extras_require setup() args instead.)r r!rfrrg)r�r�rRr/r/r0�warn_depends_obsolete�sr�cCs,t|pd�}dd�}t||�}|�|�dS)Nr/cSs|dS)Nr�r/)r�r/r/r0�	append_cr�sz&_write_requirements.<locals>.append_cr)r�map�
writelines)�streamZreqs�linesr�r/r/r0�_write_requirements�s
r�cCsn|j}t��}t||j�|jp"i}x2t|�D]&}|�djft	���t|||�q.W|�
d||���dS)Nz
[{extra}]
Zrequirements)r3�io�StringIOr�Zinstall_requires�extras_require�sortedrrr��varsrl�getvalue)r�r�rRZdistrjr�Zextrar/r/r0�write_requirements�s
r�cCs,t��}t||jj�|�d||���dS)Nzsetup-requirements)r�r�r�r3Zsetup_requiresrlr�)r�r�rRrjr/r/r0�write_setup_requirements�sr�cCs:t�dd�|j��D��}|�d|d�t|��d�dS)NcSsg|]}|�dd�d�qS)�.rr)r)r��kr/r/r0r��sz(write_toplevel_names.<locals>.<listcomp>ztop-level namesr�)rQ�fromkeysr3Ziter_distribution_namesrer\r�)r�r�rRZpkgsr/r/r0�write_toplevel_names�sr�cCst|||d�dS)NT)�	write_arg)r�r�rRr/r/r0�
overwrite_arg�sr�FcCsHtj�|�d}t|j|d�}|dk	r4d�|�d}|�||||�dS)Nrr�)r r!�splitextr�r3r\rl)r�r�rRrk�argnamerNr/r/r0r��s
r�cCs�|jj}t|t�s|dkr |}np|dk	r�g}xXt|���D]H\}}t|t�spt�||�}d�tt	t|�
����}|�d||f�q:Wd�|�}|�d||d�dS)Nr�z	[%s]
%s

rzentry pointsT)
r3Zentry_pointsrU�strr��itemsrZparse_groupr\r��valuesr�rl)r�r�rRryrj�sectionr�r/r/r0�
write_entries�s

r�c	Cs^t�dt�tj�d�rZt�d��2}x*|D]"}t�	d|�}|r*t
|�d��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�rg�EggInfoDeprecationWarningr r!rfr�rqr#r��int�group)rtr�r�r/r/r0�get_pkg_info_revision�s
r�c@seZdZdZdS)r�z?Deprecated behavior warning for EggInfo, bypassing suppression.N)r?r@rA�__doc__r/r/r/r0r��sr�)F);r�Zdistutils.filelistrZ	_FileListZdistutils.errorsrZdistutils.utilrrXrr�r r#r�r�r�r=rOZ
setuptoolsrZsetuptools.command.sdistrrZsetuptools.command.setoptr	Zsetuptools.commandr
Z
pkg_resourcesrrr
rrrrrZsetuptools.unicode_utilsr�Zsetuptools.globrZsetuptools.externrrr1r2rCr}rer�r�r�r�r�r�r�r�r�r�r�r/r/r/r0�<module>sV(S1Il
	



Youez - 2016 - github.com/yon3zu
LinuXploit