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__/build_ext.cpython-39.pyc
a

��e<E�
@s�ddlZddlZddlZddlmZddlmZddlm	Z	m
Z
mZmZddl
mZddlmZddlmZddlmZmZdd	lmZdd
lmZddlmZmZzddlmZe d�Wne!y�eZYn0ed
�ddlm"Z#dd�Z$dZ%dZ&dZ'ej(dk�rdZ&n<ej)dk�rJzddl*Z*e+e*d�Z&Z%Wne!�yHYn0dd�Z,dd�Z-Gdd�de�Ze&�s|ej)dk�r�d!dd�Z.ndZ'd"d d�Z.dS)#�N��EXTENSION_SUFFIXES)�cache_from_source)�Dict�Iterator�List�Tuple)�Path)�	build_ext)�new_compiler)�customize_compiler�get_config_var)�log)�	BaseError)�	Extension�LibraryzCython.Compiler.Main�LDSHARED)�_config_varsc	Csltjdkr`t��}z6dtd<dtd<dtd<t|�Wt��t�|�qht��t�|�0nt|�dS)N�darwinz0gcc -Wl,-x -dynamiclib -undefined dynamic_lookuprz -dynamiclibZCCSHAREDz.dylibZSO)�sys�platform�_CONFIG_VARS�copyr�clear�update)�compiler�tmp�r�@/usr/lib/python3.9/site-packages/setuptools/command/build_ext.py�_customize_compiler_for_shlib"s
�
�rFZsharedrT�nt�RTLD_NOWcCstr|SdS)N�)�	have_rtld)�srrr�if_dlFsr%cCs.tD]$}d|vr|S|dkr|SqdS)z;Return the file extension for an abi3-compliant Extension()z.abi3z.pydNr)�suffixrrr�get_abi3_suffixJs
r'c@s8eZdZUdZeed<dZeed<dd�Zee	e
e
fd�dd�Zd	d
�Zee
e
d�dd
�Z
ee	e
e
fd�dd�Zdd�Zdd�Zdd�Zdd�Zdd�Zdd�Zdd�Zee
d�dd �Zee
d�d!d"�Zee
d�d#d$�Zee
e
fd�d%d&�Zd'd(�Zd)d*�Zd4d+d,�Zd5e
ed-�d.d/�Z e
d0�d1d2�Z!d3S)6r
F�
editable_mode�inplacecCs.|jd}|_t�|�||_|r*|��dS)z;Build extensions in build directory, then copy if --inplacerN)r)�
_build_ext�run�copy_extensions_to_source)�selfZold_inplacerrrr+Xs

z
build_ext.run)�ext�returnc
Csj|�|j�}|�|�}|�d�}d�|dd��}|�|�}tj�|tj�|��}tj�|j	|�}	||	fS)N�.���)
�get_ext_fullname�name�get_ext_filename�split�joinZget_package_dir�os�path�basename�	build_lib)
r-�build_pyr.�fullname�filename�modpath�packageZpackage_dir�inplace_file�regular_filerrr�_get_inplace_equivalent`s


z!build_ext._get_inplace_equivalentcCsp|�d�}|jD]Z}|�||�\}}tj�|�s6|jsH|j|||jd�|j	r|�
||�}|j||dd�qdS)Nr;)�levelT)�compile)�get_finalized_command�
extensionsrBr7r8�existsZoptionalZ	copy_file�verbose�_needs_stub�_get_equivalent_stub�_write_stub_file)r-r;r.r@rA�inplace_stubrrrr,js

z#build_ext.copy_extensions_to_source)r.�output_filer/cCs2tj�|�}|j�d�\}}}tj�||��d�S�Nr0�.py)r7r8�dirnamer3�
rpartitionr6)r-r.rMZdir_�_r3rrrrJ{szbuild_ext._get_equivalent_stub)r/c
cs�|js
dS|�d�}|�d�jp"d}|jD]^}|�||�\}}||fV|jr*|�||�}|�||�}t||d�}t||d�}	|	|fVq*dS)Nr;�install_libr")�optimization)r)rE�optimizerFrBrIrJ�_compiled_file_name)
r-r;�optr.r@rArLZregular_stubZ
inplace_cacheZoutput_cacherrr�_get_output_mapping�s


zbuild_ext._get_output_mappingcCs�t�d�}|r&tjj|�d��|}nt�||�}td�}||jvr�|j|}|j	oXt
�}|r~|dt|��}t
�}||}t|t
�r�tj�|�\}}|j�|t�Str�|jr�tj�|�\}}tj�|d|�S|S)NZSETUPTOOLS_EXT_SUFFIXr0Z
EXT_SUFFIXzdl-)r7�getenvr8r6r5r*r4r
�ext_mapZpy_limited_apir'�len�
isinstancer�splitext�shlib_compiler�library_filename�libtype�	use_stubs�_links_to_dynamic)r-r<Zso_extr=r.Zuse_abi3�fn�drrrr4�s&




zbuild_ext.get_ext_filenamecCs&t�|�d|_g|_i|_d|_dS)NF)r*�initialize_optionsr^�shlibsrZr(�r-rrrre�s

zbuild_ext.initialize_optionscCs:t�|�|jpg|_|�|j�dd�|jD�|_|jrB|��|jD]}|�|j�|_qH|jD]�}|j}||j	|<||j	|�
d�d<|jr�|�|�p�d}|o�to�t
|t�}||_||_|�|�}|_tj�tj�|j|��}|�r||jv�r|j�|�|rbtrbtj|jvrb|j�tj�qb|j�r6d|_dS)NcSsg|]}t|t�r|�qSr)r\r��.0r.rrr�
<listcomp>��z.build_ext.finalize_options.<locals>.<listcomp>r0r1FT)r*�finalize_optionsrFZcheck_extensions_listrf�setup_shlib_compilerr2r3�
_full_namerZr5�links_to_dynamicrar\rrbrIr4�
_file_namer7r8rPr6r:�library_dirs�append�curdir�runtime_library_dirsr(r))r-r.r<Zltd�nsr=�libdirrrrrl�s0



zbuild_ext.finalize_optionscCs�t|j|j|jd�}|_t|�|jdur8|�|j�|jdur^|jD]\}}|�	||�qH|j
dur~|j
D]}|�|�qn|jdur�|�
|j�|jdur�|�|j�|jdur�|�|j�|jdur�|�|j�t�|�|_dS)N)r�dry_run�force)rrrwrxr^rZinclude_dirsZset_include_dirsZdefineZdefine_macroZundefZundefine_macro�	librariesZ
set_librariesrqZset_library_dirsZrpathZset_runtime_library_dirsZlink_objectsZset_link_objects�link_shared_object�__get__)r-rr3�valueZmacrorrrrm�s*�







zbuild_ext.setup_shlib_compilercCst|t�r|jSt�||�S�N)r\r�export_symbolsr*�get_export_symbols�r-r.rrrr�s
zbuild_ext.get_export_symbolscCsb|��|j}zFt|t�r"|j|_t�||�|jrL|�d�j	}|�
||�W||_n||_0dS)Nr;)Z_convert_pyx_sources_to_langrr\rr^r*�build_extensionrIrEr:�
write_stub)r-r.Z	_compilerr:rrrr��s
zbuild_ext.build_extensioncsPt�dd�|jD���d�|j�d�dd�dg��t��fdd�|jD��S)	z?Return true if 'ext' links to a dynamic lib in the same packagecSsg|]
}|j�qSr)rn)ri�librrrrjrkz.build_ext.links_to_dynamic.<locals>.<listcomp>r0Nr1r"c3s|]}�|�vVqdSr}r)riZlibname�ZlibnamesZpkgrr�	<genexpr>
rkz-build_ext.links_to_dynamic.<locals>.<genexpr>)�dict�fromkeysrfr6rnr5�anyryr�rr�rros zbuild_ext.links_to_dynamiccCsgt�|��|���Sr})r*�get_source_files�_get_internal_dependsrgrrrr�szbuild_ext.get_source_filesc	cs�t|jjptj���}dd�|jD�}ttdd�dd�}|D]�}t|�}|��r\||d�q<d|j	vrr||d	�q<z||jd
d�}Wn t
y�||d�Yq<Yn0z|�|�Wn ty�||d
�Yq<Yn0|�
�Vq<dS)zAYield ``ext.depends`` that are contained by the project directorycss|]}|jD]
}|VqqdSr})�depends)rir.�deprrrr�rkz2build_ext._get_internal_depends.<locals>.<genexpr>N)�	orig_path�reasonr/cSst�d||�dS)NzJdependency %s won't be automatically included in the manifest: the path %s)r�info)r�r�rrr�skips
�z-build_ext._get_internal_depends.<locals>.skipzmust be relativez..zcan't have `..` segmentsT)�strictz
doesn't existzmust be inside the project root)r	ZdistributionZsrc_rootr7rs�resolverF�str�is_absolute�parts�OSError�relative_to�
ValueError�as_posix)r-Zproject_rootr�r�r�r8Zresolvedrrrr�s,






zbuild_ext._get_internal_dependscCs,|jrt|�����Stt�|�|���Sr})r)�list�get_output_mapping�keys�sortedr*�get_outputs�_build_ext__get_stubs_outputsrgrrrr�5szbuild_ext.get_outputscCs|��}tt|dd�d��S)z1See :class:`setuptools.commands.build.SubCommand`cSs|dS)Nrr)�xrrr�<lambda>=rkz.build_ext.get_output_mapping.<locals>.<lambda>)�key)rXr�r�)r-�mappingrrrr�:szbuild_ext.get_output_mappingcs6�fdd��jD�}t�|����}tdd�|D��S)Nc3s2|]*}|jrtjj�jg|j�d��R�VqdS)r0N)rIr7r8r6r:rnr5rhrgrrr�As�z0build_ext.__get_stubs_outputs.<locals>.<genexpr>css|]\}}||VqdSr}r)ri�baseZfnextrrrr�Hrk)rF�	itertools�product�!_build_ext__get_output_extensionsr�)r-Zns_ext_bases�pairsrrgrZ__get_stubs_outputs?s

�zbuild_ext.__get_stubs_outputsccs"dVdV|�d�jrdVdS)NrOz.pycr;z.pyo)rErUrgrrrZ__get_output_extensionsJsz!build_ext.__get_output_extensionscCs2tjj|g|j�d��R�d}|�|||�dSrN)r7r8r6rnr5rK)r-�
output_dirr.rD�	stub_filerrrr�Ps zbuild_ext.write_stub)r�r.cCs�t�d|j|�|r,tj�|�r,t|d��|js�t|d�}|�	d�
dddtd�d	tj�|j
�d
ddtd
�dddtd�dddddtd�dddg��|��|r�|�|�dS)Nz writing stub loader for %s to %sz already exists! Please delete.�w�
zdef __bootstrap__():z-   global __bootstrap__, __file__, __loader__z0   import sys, os, pkg_resources, importlib.utilz, dlz:   __file__ = pkg_resources.resource_filename(__name__,%r)z   del __bootstrap__z    if '__loader__' in globals():z       del __loader__z#   old_flags = sys.getdlopenflags()z   old_dir = os.getcwd()z   try:z(     os.chdir(os.path.dirname(__file__))z$     sys.setdlopenflags(dl.RTLD_NOW)z3     spec = importlib.util.spec_from_file_location(z#                __name__, __file__)z0     mod = importlib.util.module_from_spec(spec)z!     spec.loader.exec_module(mod)z   finally:z"     sys.setdlopenflags(old_flags)z     os.chdir(old_dir)z__bootstrap__()r")rr�rnr7r8rGrrw�open�writer6r%r9rp�close�_compile_and_remove_stub)r-r�r.rD�frrrrKTsF

���zbuild_ext._write_stub_file)r�cCshddlm}||gdd|jd�|�d�j}|dkrH||g|d|jd�tj�|�rd|jsdt�|�dS)Nr)�byte_compileT)rUrxrwrS)	Zdistutils.utilr�rwrErUr7r8rG�unlink)r-r�r�rUrrrr�xs�z"build_ext._compile_and_remove_stubN)F)F)"�__name__�
__module__�__qualname__r(�bool�__annotations__r)r+rrr�rBr,rJrrXr4rerlrmrr�rorr�r�r�rr�r�r�r�rKr�rrrrr
Ts.


	&
$r
c

Cs(|�|j|||||||||	|
||�
dSr})�linkZSHARED_LIBRARY)
r-�objects�output_libnamer�ryrqrtr~�debug�
extra_preargs�extra_postargs�
build_temp�target_langrrrrz�s�rzZstaticc
Cs^|dusJ�tj�|�\}}
tj�|
�\}}|�d��d�rH|dd�}|�|||||�dS)Nr�r��)r7r8r5r]r_�
startswithZcreate_static_lib)r-r�r�r�ryrqrtr~r�r�r�r�r�r=r9r.rrrrz�s)
NNNNNrNNNN)
NNNNNrNNNN)/r7rr�Zimportlib.machineryr�importlib.utilrrV�typingrrrr�pathlibr	Zdistutils.command.build_extr
Z
_du_build_extZdistutils.ccompilerrZdistutils.sysconfigrr
�	distutilsrZsetuptools.errorsrZsetuptools.extensionrrZCython.Distutils.build_extr*�
__import__�ImportErrorrrrr#rar`rr3Zdl�hasattrr%r'rzrrrr�<module>sx

6�!�

Youez - 2016 - github.com/yon3zu
LinuXploit