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__/bdist_egg.cpython-36.pyc
3

��a�@�@s"dZddlmZmZddlmZddlmZddlZddl	Z	ddl
Z
ddlZddlZddl
mZmZmZddlmZddlmZdd	lmZmZd
d�Zdd
�Zdd�Zdd�ZGdd�de�Zejdj��Z dd�Z!dd�Z"dd�Z#ddd�Z$dd�Z%d d!�Z&d"d#�Z'd$d%d&d'gZ(d,d*d+�Z)dS)-z6setuptools.command.bdist_egg

Build .egg distributions�)�remove_tree�mkpath)�log)�CodeTypeN)�get_build_platform�Distribution�ensure_directory)�Library)�Command)�get_path�get_python_versioncCstd�S)N�purelib)r�rr�/usr/lib/python3.6/bdist_egg.py�_get_purelibsrcCs2d|krtjj|�d}|jd�r.|dd�}|S)N�.r�module�i����)�os�path�splitext�endswith)�filenamerrr�strip_modules

rccs:x4tj|�D]&\}}}|j�|j�|||fVqWdS)zbDo os.walk in a reproducible way,
    independent of indeterministic filesystem readdir order
    N)r�walk�sort)�dir�base�dirs�filesrrr�sorted_walk!sr c
Cs6tjd�j�}t|d��}|j||�WdQRXdS)Na�
        def __bootstrap__():
            global __bootstrap__, __loader__, __file__
            import sys, pkg_resources, importlib.util
            __file__ = pkg_resources.resource_filename(__name__, %r)
            __loader__ = None; del __bootstrap__, __loader__
            spec = importlib.util.spec_from_file_location(__name__,__file__)
            mod = importlib.util.module_from_spec(spec)
            spec.loader.exec_module(mod)
        __bootstrap__()
        �w)�textwrap�dedent�lstrip�open�write)Zresource�pyfileZ_stub_template�frrr�
write_stub+s

r)c@s�eZdZdZd*ddde�fd+d-d.d/gZdddgZdd�Zdd�Zdd�Z	dd�Z
dd�Zdd�Zd d!�Z
d"d#�Zd$d%�Zd&d'�Zd(d)�Zd	S)0�	bdist_eggzcreate an "egg" distribution�
bdist-dir=�b�1temporary directory for creating the distributionz
plat-name=�pz;platform name to embed in generated filenames (default: %s)�exclude-source-filesN�+remove all .py files from the generated egg�	keep-temp�kz/keep the pseudo-installation tree around after z!creating the distribution archive�	dist-dir=�d�-directory to put final built distributions in�
skip-build�2skip rebuilding everything (for testing/debugging)cCs.d|_d|_d|_d|_d|_d|_d|_dS)Nr)�	bdist_dir�	plat_name�	keep_temp�dist_dir�
skip_build�
egg_output�exclude_source_files)�selfrrr�initialize_optionsRszbdist_egg.initialize_optionscCs�|jd�}|_|j|_|jdkr>|jd�j}tjj|d�|_|jdkrPt	�|_|j
dd�|jdkr�tdd|j
|jt�|jj�o�|j�j
�}tjj|j|d�|_dS)N�egg_infoZbdistZeggr;z.egg)r;r;)�get_finalized_command�ei_cmdrAr8�
bdist_baserr�joinr9rZset_undefined_optionsr=rZegg_nameZegg_versionr�distribution�has_ext_modulesr;)r?rCrD�basenamerrr�finalize_options[s


zbdist_egg.finalize_optionscCs�|j|jd�_tjjtjjt���}|jj	g}|j_	x�|D]�}t
|t�r�t|�dkr�tjj
|d�r�tjj|d�}tjj|�}||ks�|j|tj�r�|t|�dd�|df}|jj	j|�q<Wz"tjd|j�|jdddd�Wd||j_	XdS)N�install�r�zinstalling package data to %s�install_data)�force�root)r8rB�install_librr�normcase�realpathrrF�
data_files�
isinstance�tuple�len�isabs�
startswith�sep�appendr�info�call_command)r?Z
site_packages�old�itemrRZ
normalizedrrr�do_install_datass 
zbdist_egg.do_install_datacCs|jgS)N)r=)r?rrr�get_outputs�szbdist_egg.get_outputscKsTxtD]}|j||j�qW|jd|j�|jd|j�|j|f|�}|j|�|S)z8Invoke reinitialized command `cmdname` with keyword argsr<�dry_run)�INSTALL_DIRECTORY_ATTRS�
setdefaultr8r<raZreinitialize_command�run_command)r?Zcmdname�kw�dirname�cmdrrrr\�s

zbdist_egg.call_commandcCs�|jd�tjd|j�|jd�}|j}d|_|jj�rJ|jrJ|jd�|j	ddd�}||_|j
�\}}g|_g}x�t|�D]|\}}t
jj|�\}	}
t
jj|jt|	�d�}|jj|�tjd	|�|js�tt
jj|�|�|j|�|jt
jd
�||<q~W|�r|j|�|jj�r |j�|j}t
jj|d�}
|j|
�|jj�rrt
jj|
d�}tjd
|�|j	d|dd�|j|
�t
jj|
d�}|�r�tjd|�|j�st|�t|d�}|j dj|��|j d�|j!�n,t
jj"|��rtjd|�|j�st
j#|�t$t
jj|d�|j%��t
jj&t
jj|j'd���rBtj(d�|j)�rR|j*�t+|j,||j-|j|j.�d�|j/�s�t0|j|jd�t1|jdg�jdt2�|j,f�dS)NrAzinstalling library code to %srJZ
build_clibrPr)Zwarn_dirz.pyzcreating stub loader for %s�/zEGG-INFO�scriptszinstalling scripts to %sZinstall_scriptsrL)�install_dirZno_epznative_libs.txtz
writing %s�wt�
zremoving %szdepends.txtzxWARNING: 'depends.txt' will not be used by setuptools 0.6!
Use the install_requires/extras_require setup() args instead.)�verbosera�mode)raZ
dist_filesr*)3rdrr[r8rBrOrFZhas_c_librariesr<r\�get_ext_outputs�stubs�	enumeraterrrrErrZrar)rH�replacerYZbyte_compilerSr_rri�copy_metadata_torr%r&�close�isfile�unlink�write_safety_flag�zip_safe�existsrA�warnr>�zap_pyfiles�make_zipfiler=rm�
gen_headerr:r�getattrr)r?ZinstcmdZold_rootrg�all_outputs�ext_outputsZ
to_compiler.Zext_namer�extr'Zarchive_rootrAZ
script_dirZnative_libsZ	libs_filerrr�run�sz












z
bdist_egg.runc

Cs�tjd�x�t|j�D]�\}}}x�|D]�}tjj||�}|jd�rXtjd|�tj	|�|jd�r&|}d}t
j||�}tjj|tj|j
d�d�}	tjd||	f�ytj|	�Wntk
r�YnXtj||	�q&WqWdS)	Nz+Removing .py files from temporary directoryz.pyzDeleting %s�__pycache__z#(?P<name>.+)\.(?P<magic>[^.]+)\.pyc�namez.pyczRenaming file from [%s] to [%s])rr[�walk_eggr8rrrEr�debugrv�re�match�pardir�group�remove�OSError�rename)
r?rrrr�rZpath_old�pattern�mZpath_newrrrr{�s*




zbdist_egg.zap_pyfilescCs2t|jdd�}|dk	r|Stjd�t|j|j�S)Nrxz4zip_safe flag not set; analyzing archive contents...)r~rFrrz�analyze_eggr8rp)r?�saferrrrxs

zbdist_egg.zip_safecCsdS)Nr!r)r?rrrr}szbdist_egg.gen_headercCsltjj|j�}tjj|d�}xJ|jjjD]<}|j|�r(tjj||t	|�d��}t
|�|j||�q(WdS)z*Copy metadata (egg info) to the target_dir�N)rr�normpathrArErCZfilelistrrXrVrZ	copy_file)r?Z
target_dirZ
norm_egg_info�prefixr�targetrrrrss
zbdist_egg.copy_metadata_tocCsg}g}|jdi}x|t|j�D]n\}}}x6|D].}tjj|�dj�tkr.|j|||�q.Wx*|D]"}|||d|tjj||�<qfWqW|j	j
��r|jd�}xd|jD]Z}	t
|	t�r�q�|j|	j�}
|j|
�}tjj|�jd�s�tjjtjj|j|��r�|j|�q�W||fS)zAGet a list of relative paths to C extensions in the output distror�rLrhZ	build_extzdl-)r8r rrr�lower�NATIVE_EXTENSIONSrZrErFrGrB�
extensionsrTr	Zget_ext_fullnamer�Zget_ext_filenamerHrXry)r?rr��pathsrrrrZ	build_cmdr��fullnamerrrros(


&


zbdist_egg.get_ext_outputs)r+r,r-)r/Nr0�Pkeep the pseudo-installation tree around after creating the distribution archive)r1r2r�)r3r4r5)r6Nr7)�__name__�
__module__�__qualname__�descriptionrZuser_optionsZboolean_optionsr@rIr_r`r\r�r{rxr}rsrorrrrr*;s4
	
Qr*z.dll .so .dylib .pydccsLt|�}t|�\}}}d|kr(|jd�|||fVx|D]
}|Vq:WdS)z@Walk an unpacked egg's contents, skipping the metadata directoryzEGG-INFON)r �nextr�)�egg_dirZwalkerrrrZbdfrrrr�:s

r�c	Cs�x0tj�D]$\}}tjjtjj|d|��r
|Sq
Wt�s<dSd}xbt|�D]V\}}}xJ|D]B}|jd�sZ|jd�rvqZqZ|jd�s�|jd�rZt	||||�o�|}qZWqJW|S)NzEGG-INFOFTz.pyz.pywz.pycz.pyo)
�safety_flags�itemsrrryrE�can_scanr�r�scan_module)	r�rp�flag�fnr�rrrr�rrrr�Es
r�cCs�x~tj�D]r\}}tjj||�}tjj|�rL|dks@t|�|kr|tj|�q
|dk	r
t|�|kr
t|d�}|j	d�|j
�q
WdS)Nrkrl)r�r�rrrEry�boolrvr%r&rt)r�r�r�r�r(rrrrwWs

rwzzip-safeznot-zip-safe)TFc
Cstjj||�}|dd�|kr"dS|t|�dd�jtjd�}||rJdpLdtjj|�d}tjdkrpd	}nd
}t	|d�}|j
|�tj|�}	|j
�d}
tjt|	��}x&dD]}||kr�tjd||�d}
q�Wd|k�r
x*d D]"}||k�r�tjd||�d}
�q�W|
S)!z;Check whether module possibly uses unsafe-for-zipfile stuffNrLTrr�r�����rb�__file__�__path__z%s: module references %sF�inspect�	getsource�
getabsfile�
getsourcefile�getfilegetsourcelines�
findsource�getcomments�getframeinfo�getinnerframes�getouterframes�stack�tracez"%s: module MAY be using inspect.%s���)r�r�)r�r�)r�r�r�r�r�r�r�r�r�r�r�)rrrErVrrrYr�sys�version_infor%�read�marshal�loadrt�dict�fromkeys�iter_symbolsrrz)
r�rr�rprZpkgr�skipr(�coder�ZsymbolsZbadrrrr�js6 







r�ccs^x|jD]
}|VqWxB|jD]8}t|t�r4|Vqt|t�rxt|�D]
}|VqHWqWdS)zBYield names and strings used by `code` and its nested code objectsN)�co_names�	co_constsrT�strrr�)r�r��constrrrr��s


r�cCs4tjjd�rtjdkrdStjd�tjd�dS)N�javaZcliTz1Unable to analyze compiled code on this platform.zfPlease ask the author to include a 'zip_safe' setting (either True or False) in the package's setup.py)r��platformrXrrzrrrrr��s
r�rPrjrMZinstall_baseTr!c
s�ddl}ttjj|��d�tjd|����fdd�}|rB|jn|j}�s�|j	|||d�}	x"t
��D]\}
}}||	|
|�qfW|	j�n$x"t
��D]\}
}}|d|
|�q�W|S)aqCreate a zip file from all the files under 'base_dir'.  The output
    zip file will be named 'base_dir' + ".zip".  Uses either the "zipfile"
    Python module (if available) or the InfoZIP "zip" utility (if installed
    and found on the default search path).  If neither tool is available,
    raises DistutilsExecError.  Returns the name of the output zip file.
    rN)raz#creating '%s' and adding '%s' to itcsdx^|D]V}tjjtjj||��}tjj|�r|t��dd�}�sP|j||�tjd|�qWdS)NrLzadding '%s')	rrr�rErurVr&rr�)�zrf�namesr�rr.)�base_dirrarr�visit�s
zmake_zipfile.<locals>.visit)�compression)�zipfilerrrrfrr[ZZIP_DEFLATEDZ
ZIP_STOREDZZipFiler rt)
Zzip_filenamer�rmra�compressrnr�r�r�r�rfrrr)r�rarr|�s	
r|)rrTr!)*�__doc__Zdistutils.dir_utilrrZ	distutilsr�typesrr�rr�r"r�Z
pkg_resourcesrrrZsetuptools.extensionr	Z
setuptoolsr
�	sysconfigrrrrr r)r*r�r��splitr�r�r�rwr�r�r�r�rbr|rrrr�<module>s<
}"


Youez - 2016 - github.com/yon3zu
LinuXploit