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.6/site-packages/setuptools/__pycache__/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : C:/cygwin64/lib/python3.6/site-packages/setuptools/__pycache__/build_meta.cpython-36.opt-1.pyc
3

��a()�@sdZddlZddlZddlZddlZddlZddlZddlZddlZddl	Z	ddl
Z
ddlmZdddddd	d
gZ
Gdd
�d
e�ZGdd
�d
e	jj�Zejdd��Zdd�Zdd�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� /usr/lib/python3.6/build_meta.py�__init__5szSetupRequirementsError.__init__N)�__name__�
__module__�__qualname__rrrrr
r	4sc@s&eZdZdd�Zeejdd���ZdS)�DistributioncCstttt|���}t|��dS)N)�list�map�strrr	)rr
Zspecifier_listrrr
�fetch_build_eggs:szDistribution.fetch_build_eggsccs*tjj}|tj_z
dVWd|tj_XdS)zw
        Replace
        distutils.dist.Distribution with this class
        for the duration of this context.
        N)�	distutilsZcorer)�cls�origrrr
�patch?s

zDistribution.patchN)rrrr�classmethod�
contextlib�contextmanagerrrrrr
r9srccs(tj}dd�t_z
dVWd|t_XdS)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.
    cSsdS)Nr)Zattrsrrr
�<lambda>Xsz+no_install_setup_requires.<locals>.<lambda>N)�
setuptoolsZ_install_setup_requires)rrrr
�no_install_setup_requiresOs


r cs�fdd�tj��D�S)Ncs&g|]}tjjtjj�|��r|�qSr)�os�path�isdir�join)�.0�name)�a_dirrr
�
<listcomp>`sz1_get_immediate_subdirectories.<locals>.<listcomp>)r!�listdir)r'r)r'r
�_get_immediate_subdirectories_sr*csD�fdd�tj|�D�}y
|\}Wntk
r>td��YnX|S)Nc3s|]}|j��r|VqdS)N)�endswith)r%�f)�	extensionrr
�	<genexpr>fsz'_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)Z	directoryr-Zmatching�filer)r-r
�_file_with_extensionds
r1cCs&tjj|�stjd�Sttdt�|�S)Nz%from setuptools import setup; setup()�open)r!r"�exists�io�StringIO�getattr�tokenizer2)�setup_scriptrrr
�_open_setup_scriptrs
r9c
cs*tj��tjdd�dVWdQRXdS)N�ignorezsetup.py install is deprecated)�warnings�catch_warnings�filterwarningsrrrr
�suppress_known_deprecationzs
r>c@s`eZdZdd�Zdd�Zddd�Zdd	d
�Zddd�Zdd
d�Zdd�Z	ddd�Z
ddd�ZdS)�_BuildMetaBackendcCs|pi}|jdg�|S)Nz--global-option)�
setdefault)r�config_settingsrrr
�_fix_config�sz_BuildMetaBackend._fix_configcCsz|j|�}tjdd�dg|dt_y tj��|j�WdQRXWn,tk
rt}z||j7}WYdd}~XnX|S)N�Zegg_infoz--global-option)rB�sys�argvrr�	run_setupr	r
)rrA�requirements�errr
�_get_build_requires�s

z%_BuildMetaBackend._get_build_requires�setup.pycCsD|}d}t|��}|j�jdd�}WdQRXtt||d�t��dS)N�__main__z\r\nz\n�exec)r9�read�replacerL�compile�locals)rr8�__file__rr,�coderrr
rF�s

z_BuildMetaBackend.run_setupNcCs|j|�}|j|dgd�S)NZwheel)rG)rBrI)rrArrr
r�s
z._BuildMetaBackend.get_requires_for_build_wheelcCs|j|�}|j|gd�S)N)rG)rBrI)rrArrr
r�s
z._BuildMetaBackend.get_requires_for_build_sdistcCs�tjdd�dd|gt_t��|j�WdQRX|}xPdd�tj|�D�}t|�dkr�tt|��dkr�tjj	|tj|�d�}q:Pq:W||kr�t
jtjj	||d�|�t
j|dd�|dS)	NrCZ	dist_infoz
--egg-basecSsg|]}|jd�r|�qS)z
.dist-info)r+)r%r,rrr
r(�szF_BuildMetaBackend.prepare_metadata_for_build_wheel.<locals>.<listcomp>rT)�
ignore_errors)
rDrEr rFr!r)�lenr*r"r$�shutilZmoveZrmtree)r�metadata_directoryrAZdist_info_directoryZ
dist_infosrrr
r�s&z2_BuildMetaBackend.prepare_metadata_for_build_wheelcCs�|j|�}tjj|�}tj|dd�tj|d���}tjdd�|d|g|dt_t	��|j
�WdQRXt||�}tjj||�}tjj
|�r�tj|�tjtjj||�|�WdQRX|S)NT)�exist_ok)�dirrCz
--dist-dirz--global-option)rBr!r"�abspath�makedirs�tempfileZTemporaryDirectoryrDrEr rFr1r$r3�remove�rename)rZ
setup_commandZresult_extensionZresult_directoryrAZtmp_dist_dirZresult_basenameZresult_pathrrr
�_build_with_temp_dir�s

 z&_BuildMetaBackend._build_with_temp_dircCs$t��|jdgd||�SQRXdS)NZbdist_wheelz.whl)r>r^)rZwheel_directoryrArVrrr
r�s
z_BuildMetaBackend.build_wheelcCs|jdddgd||�S)NZsdistz	--formatsZgztarz.tar.gz)r^)rZsdist_directoryrArrr
r�sz_BuildMetaBackend.build_sdist)rJ)N)N)N)NN)N)rrrrBrIrFrrrr^rrrrrr
r?�s



!
r?cs"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.
    �setup.pyc
s�ttj�}tjjtjj|��}|tjkr6tjjd|�tjd}|tjd<ztt	|�j
|d�Wd|tjdd�<|tjd<XdS)Nr)r8)rrDr"r!�dirnamerY�insertrE�superr_rF)rr8Zsys_pathZ
script_dirZ
sys_argv_0)�	__class__rr
rF�s



z!_BuildMetaLegacyBackend.run_setup)r`)rrr�__doc__rF�
__classcell__rr)rdr
r_�s
r_)"rer4r!rDr7rUrr[r;rrZ
pkg_resourcesr�__all__�
BaseExceptionr	Zdistrrr r*r1r9r>�objectr?r_Z_BACKENDrrrrrrrrrr
�<module>sDn)

Youez - 2016 - github.com/yon3zu
LinuXploit