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/__pycache__/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : C:/cygwin64/lib/python3.9/site-packages/setuptools/__pycache__/monkey.cpython-39.opt-1.pyc
a

��e��@s�UdZddlZddlZddlZddlZddlZddlmZddlm	Z	m
Z
ddlZe
d�Z
gZe	eed<dd�Ze
e
d	�d
d�Zdd
�Zdd�Zdd�Zdd�Zdd�Zdd�ZdS)z
Monkey patching of distutils.
�N)�
import_module)�List�TypeVar�_T�__all__cCs"t��dkr|f|jSt�|�S)am
    Returns the bases classes for cls sorted by the MRO.

    Works around an issue on Jython where inspect.getmro will not return all
    base classes if multiple classes share the same name. Instead, this
    function will return a tuple containing the class itself, and the contents
    of cls.__bases__. See https://github.com/pypa/setuptools/issues/1024.
    ZJython)�platformZpython_implementation�	__bases__�inspectZgetmro)�cls�r�5/usr/lib/python3.9/site-packages/setuptools/monkey.py�_get_mros	r
)�item�returncCs.t|t�rtnt|tj�rtndd�}||�S)NcSsdS�Nr)rrrr�<lambda>-�zget_unpatched.<locals>.<lambda>)�
isinstance�type�get_unpatched_class�types�FunctionType�get_unpatched_function)r�lookuprrr�
get_unpatched's�
��rcCs:dd�t|�D�}t|�}|j�d�s6d|}t|��|S)z�Protect against re-patching the distutils if reloaded

    Also ensures that no other distutils extension monkeypatched the distutils
    first.
    css|]}|j�d�s|VqdS)�
setuptoolsN)�
__module__�
startswith)�.0r
rrr�	<genexpr>8sz&get_unpatched_class.<locals>.<genexpr>�	distutilsz(distutils has already been patched by %r)r
�nextrr�AssertionError)r
Zexternal_bases�base�msgrrrr2s�rcCstddl}|jtj_t�tjtjtjfD]}|jj|_q(|jj	tj_	|jj	tj_	dt
jvrj|jj	t
jd_	t�dS)Nrzdistutils.command.build_ext)
rZCommandr �core�_patch_distribution_metadata�dist�cmdZDistribution�	extensionZ	Extension�sys�modules�#patch_for_msvc_specialized_compiler)r�modulerrr�	patch_allBs

��r.cCs4ddlm}dD]}t||�}ttjj||�qdS)N�)�_core_metadata)Zwrite_pkg_infoZwrite_pkg_fileZ
read_pkg_fileZget_metadata_version)�r0�getattr�setattrr r'ZDistributionMetadata)r0�attr�new_valrrrr&Ys
r&cCs*t||�}t|��d|�t|||�dS)z�
    Patch func_name in target_mod with replacement

    Important - original must be resolved by name to avoid
    patching an already patched function.
    �	unpatchedN)r2�vars�
setdefaultr3)ZreplacementZ
target_mod�	func_nameZoriginalrrr�
patch_funcgs
r:cCs|jSr)r6)�	candidaterrrrxsrcs\ddlm�t��dkrdS�fdd�}t�|d�}zt|d��WntyVYn0dS)	z\
    Patch functions in distutils to use standalone Microsoft Visual C++
    compilers.
    r/��msvcZWindowsNcs@d}||�d�}t�|�}t|�}t||�s6t|��|||fS)zT
        Prepare the parameters for patch_func to patch indicated function.
        Zmsvc14_�_)�lstripr2r�hasattr�ImportError)Zmod_namer9Zrepl_prefixZ	repl_name�repl�modr<rr�patch_params�s

z9patch_for_msvc_specialized_compiler.<locals>.patch_paramszdistutils._msvccompilerZ_get_vc_env)r1r=r�system�	functools�partialr:rA)rDZmsvc14rr<rr,|s
r,)�__doc__rFr	rr*r�	importlibr�typingrrZdistutils.filelistr rr�str�__annotations__r
rrr.r&r:rr,rrrr�<module>s$

Youez - 2016 - github.com/yon3zu
LinuXploit