Spamworldpro Mini Shell
Spamworldpro


Server : Apache/2.4.52 (Ubuntu)
System : Linux webserver 6.8.0-49-generic #49~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Nov 6 17:42:15 UTC 2 x86_64
User : www-data ( 33)
PHP Version : 8.1.2-1ubuntu2.21
Disable Function : NONE
Directory :  /lib/python3/dist-packages/setuptools/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/setuptools/__pycache__/monkey.cpython-310.pyc
o

�_�aa�@s�dZddlZddlZddlZddlZddlZddlmZddl	Z	ddl
Z
gZ	dd�Zdd�Z
dd	�Zd
d�Zdd
�Zdd�Zdd�Zdd�ZdS)z
Monkey patching of distutils.
�N)�
import_modulecCs"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.
    �Jython)�platform�python_implementation�	__bases__�inspect�getmro)�cls�r
�3/usr/lib/python3/dist-packages/setuptools/monkey.py�_get_mros	
rcCs.t|t�rtnt|tj�rtndd�}||�S)NcSsdS)Nr
)�itemr
r
r�<lambda>(szget_unpatched.<locals>.<lambda>)�
isinstance�type�get_unpatched_class�types�FunctionType�get_unpatched_function)r
�lookupr
r
r�
get_unpatched$s
�rcCs:dd�t|�D�}t|�}|j�d�sd|}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	r
r
r�	<genexpr>3s�
�
�z&get_unpatched_class.<locals>.<genexpr>�	distutilsz(distutils has already been patched by %r)r�nextrr�AssertionError)r	�external_bases�base�msgr
r
rr-s�rcCs�tjtj_tjdk}|rtjtj_tjdkp/dtjko dknp/dtjko-dkn}|r9d}|tjj	_
t�tjtjtj
fD]}tjj|_qDtjjtj_tjjtj_dtjvretjjtjd_t�dS)N)��r")���
)r"�)r"r'�)r"r#zhttps://upload.pypi.org/legacy/zdistutils.command.build_ext)r�Commandr�core�sys�version_info�findall�filelist�config�
PyPIRCCommand�DEFAULT_REPOSITORY�_patch_distribution_metadata�dist�cmd�Distribution�	extension�	Extension�modules�#patch_for_msvc_specialized_compiler)�has_issue_12885�needs_warehouse�	warehouse�moduler
r
r�	patch_all?s*



��


�
r>cCs*dD]}ttj|�}ttjj||�qdS)zDPatch write_pkg_file and read_pkg_file for higher metadata standards)�write_pkg_file�
read_pkg_file�get_metadata_versionN)�getattrrr3�setattrr�DistributionMetadata)�attr�new_valr
r
rr2fs�r2cCs*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)rB�vars�
setdefaultrC)�replacement�
target_mod�	func_name�originalr
r
r�
patch_funcms
rNcCs
t|d�S)NrG)rB)�	candidater
r
rr~s
rcs�td��t��dkrdS�fdd�}t�|d�}t�|d�}zt|d��t|d	��Wn	ty5Ynwzt|d
��Wn	tyGYnwz	t|d��WdSty[YdSw)z\
    Patch functions in distutils to use standalone Microsoft Visual C++
    compilers.
    zsetuptools.msvc�WindowsNcsLd|vrdnd}||�d�}t�|�}t|�}t||�s!t|��|||fS)zT
        Prepare the parameters for patch_func to patch indicated function.
        �msvc9�msvc9_�msvc14_�_)�lstriprBr�hasattr�ImportError)�mod_namerL�repl_prefix�	repl_name�repl�mod��msvcr
r�patch_params�s


z9patch_for_msvc_specialized_compiler.<locals>.patch_paramszdistutils.msvc9compilerzdistutils._msvccompiler�find_vcvarsall�query_vcvarsall�_get_vc_env�gen_lib_options)rr�system�	functools�partialrNrW)r_rQ�msvc14r
r]rr9�s,
���r9)�__doc__r+�distutils.filelistrrrre�	importlibrrr�__all__rrrr>r2rNrr9r
r
r
r�<module>s&	'

Spamworldpro Mini