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 :  /usr/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 : /usr/lib/python3/dist-packages/setuptools/__pycache__/build_meta.cpython-310.pyc
o

�_�a()�@sdZddlZddlZddlZddlZddlZddlZddlZddlZddl	Z	ddl
Z
ddlmZgd�Z
Gdd�de�ZGdd�de	jj�Zejd	d
��Zdd�Zd
d�Zdd�Zejdd��ZGdd�de�ZGdd�de�Ze�ZejZejZejZejZej Z e�Z!dS)a-A PEP 517 interface to setuptools

Previously, when a user or a command line tool (let's call it a "frontend")
needed to make a request of setuptools to take a certain action, for
example, generating a list of installation requirements, the frontend would
would call "setup.py egg_info" or "setup.py bdist_wheel" on the command line.

PEP 517 defines a different method of interfacing with setuptools. Rather
than calling "setup.py" directly, the frontend should:

  1. Set the current directory to the directory with a setup.py file
  2. Import this module into a safe python interpreter (one in which
     setuptools can potentially set global variables or crash hard).
  3. Call one of the functions defined in PEP 517.

What each function does is defined in PEP 517. However, here is a "casual"
definition of the functions (this definition should not be relied on for
bug reports or API stability):

  - `build_wheel`: build a wheel in the folder and return the basename
  - `get_requires_for_build_wheel`: get the `setup_requires` to build
  - `prepare_metadata_for_build_wheel`: get the `install_requires`
  - `build_sdist`: build an sdist in the folder and return the basename
  - `get_requires_for_build_sdist`: get the `setup_requires` to build

Again, this is not a formal definition! Just a "taste" of the module.
�N)�parse_requirements)�get_requires_for_build_sdist�get_requires_for_build_wheel� prepare_metadata_for_build_wheel�build_wheel�build_sdist�
__legacy__�SetupRequirementsErrorc@seZdZdd�ZdS)r	cCs
||_dS�N)�
specifiers)�selfr�r
�7/usr/lib/python3/dist-packages/setuptools/build_meta.py�__init__5s
zSetupRequirementsError.__init__N)�__name__�
__module__�__qualname__rr
r
r
rr	4sr	c@s&eZdZdd�Zeejdd���ZdS)�DistributioncCstttt|���}t|��r
)�list�map�strrr	)rr�specifier_listr
r
r�fetch_build_eggs:szDistribution.fetch_build_eggsccs2�tjj}|tj_z
dVW|tj_dS|tj_w)zw
        Replace
        distutils.dist.Distribution with this class
        for the duration of this context.
        N)�	distutils�corer)�cls�origr
r
r�patch?s�zDistribution.patchN)rrrr�classmethod�
contextlib�contextmanagerrr
r
r
rr9s
rccs.�tj}dd�t_z	dVW|t_dS|t_w)a
Temporarily disable installing setup_requires

    Under PEP 517, the backend reports build dependencies to the frontend,
    and the frontend is responsible for ensuring they're installed.
    So setuptools (acting as a backend) should not try to install them.
    cSsdSr
r
)�attrsr
r
r�<lambda>Xsz+no_install_setup_requires.<locals>.<lambda>N)�
setuptools�_install_setup_requires)rr
r
r�no_install_setup_requiresOs�
r%cs�fdd�t���D�S)Ncs&g|]}tj�tj��|��r|�qSr
)�os�path�isdir�join)�.0�name��a_dirr
r�
<listcomp>`s
�z1_get_immediate_subdirectories.<locals>.<listcomp>)r&�listdirr,r
r,r�_get_immediate_subdirectories_sr0cs<�fdd�t�|�D�}z|\}W|Stytd��w)Nc3s�|]
}|���r|VqdSr
��endswith�r*�f��	extensionr
r�	<genexpr>es��
�z'_file_with_extension.<locals>.<genexpr>z[No distribution was found. Ensure that `setup.py` is not empty and that it calls `setup()`.)r&r/�
ValueError)�	directoryr6�matching�filer
r5r�_file_with_extensionds
����r<cCs&tj�|�st�d�Sttdt�|�S)Nz%from setuptools import setup; setup()�open)r&r'�exists�io�StringIO�getattr�tokenizer=��setup_scriptr
r
r�_open_setup_scriptrs
rEccsB�t���t�dd�dVWd�dS1swYdS)N�ignorezsetup.py install is deprecated)�warnings�catch_warnings�filterwarningsr
r
r
r�suppress_known_deprecationzs
�
"�rJc@sfeZdZdd�Zdd�Zddd�Zdd	d
�Zddd�Z	dd
d�Zdd�Z			ddd�Z
ddd�ZdS)�_BuildMetaBackendcCs|pi}|�dg�|S)N�--global-option)�
setdefault�r�config_settingsr
r
r�_fix_config�sz_BuildMetaBackend._fix_configc
Cs�|�|�}tjdd�dg|dt_zt���|��Wd�W|S1s*wYW|StyI}z||j7}WYd}~|Sd}~ww)N��egg_inforL)rP�sys�argvrr�	run_setupr	r)rrO�requirements�er
r
r�_get_build_requires�s 
�

�����z%_BuildMetaBackend._get_build_requires�setup.pycCsX|}d}t|��}|���dd�}Wd�n1swYtt||d�t��dS)N�__main__z\r\nz\n�exec)rE�read�replacer[�compile�locals)rrD�__file__rr4�coder
r
rrU�s
�z_BuildMetaBackend.run_setupNcCs|�|�}|j|dgd�S)N�wheel�rV�rPrXrNr
r
rr�s
�z._BuildMetaBackend.get_requires_for_build_wheelcCs|�|�}|j|gd�S)NrcrdrNr
r
rr�s
z._BuildMetaBackend.get_requires_for_build_sdistcCs�tjdd�dd|gt_t��|��Wd�n1swY|}	dd�t�|�D�}t|�dkrLtt|��dkrLtj�	|t�|�d�}q&t|�dksTJ�	||krmt
�tj�	||d�|�t
j|dd�|dS)	NrQ�	dist_infoz
--egg-baseTcSsg|]	}|�d�r|�qS)z
.dist-infor1r3r
r
rr.�s
�zF_BuildMetaBackend.prepare_metadata_for_build_wheel.<locals>.<listcomp>r)�
ignore_errors)
rSrTr%rUr&r/�lenr0r'r)�shutil�move�rmtree)r�metadata_directoryrO�dist_info_directory�
dist_infosr
r
rr�s0�
���z2_BuildMetaBackend.prepare_metadata_for_build_wheelc	Cs�|�|�}tj�|�}tj|dd�tj|d��T}tjdd�|d|g|dt_t	��|�
�Wd�n1s=wYt||�}tj�||�}tj�
|�rYt�|�t�tj�||�|�Wd�|S1sowY|S)NT)�exist_ok)�dirrQz
--dist-dirrL)rPr&r'�abspath�makedirs�tempfile�TemporaryDirectoryrSrTr%rUr<r)r>�remove�rename)r�
setup_command�result_extension�result_directoryrO�tmp_dist_dir�result_basename�result_pathr
r
r�_build_with_temp_dir�s.
��
��

��z&_BuildMetaBackend._build_with_temp_dircCs<t��|�dgd||�Wd�S1swYdS)N�bdist_wheelz.whl)rJr|)r�wheel_directoryrOrkr
r
rr�s

�$�z_BuildMetaBackend.build_wheelcCs|�gd�d||�S)N)�sdistz	--formats�gztarz.tar.gz)r|)r�sdist_directoryrOr
r
rr�s
�z_BuildMetaBackend.build_sdist�rYr
)NN)rrrrPrXrUrrrr|rrr
r
r
rrK�s



�"
�rKcs"eZdZdZd�fdd�	Z�ZS)�_BuildMetaLegacyBackendaOCompatibility backend for setuptools

    This is a version of setuptools.build_meta that endeavors
    to maintain backwards
    compatibility with pre-PEP 517 modes of invocation. It
    exists as a temporary
    bridge between the old packaging mechanism and the new
    packaging mechanism,
    and will eventually be removed.
    rYc
s�ttj�}tj�tj�|��}|tjvrtj�d|�tjd}|tjd<ztt	|�j
|d�W|tjdd�<|tjd<dS|tjdd�<|tjd<w)NrrC)rrSr'r&�dirnamerp�insertrT�superr�rU)rrD�sys_path�
script_dir�
sys_argv_0��	__class__r
rrU�s 



���z!_BuildMetaLegacyBackend.run_setupr�)rrr�__doc__rU�
__classcell__r
r
r�rr��s
r�)"r�r?r&rSrBrhrrrrGr#r�
pkg_resourcesr�__all__�
BaseExceptionr	�distrr r%r0r<rErJ�objectrKr��_BACKENDrrrrrrr
r
r
r�<module>s>	

n)


Anon7 - 2022
AnonSec Team