[ Avaa Bypassed ]




Upload:

Command:

hmhc3928@18.220.43.27: ~ $
U

+�a((�@sdZddlZddlZddlZddlZddlZddlZddlZddlZddl	Z	ddl
mZdddddd	d
gZGdd
�d
e
�ZGdd
�d
ejj�Zejdd��Zdd�Zdd�Zdd�ZGdd�de�ZGdd�de�Ze�ZejZejZejZejZejZe�ZdS)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
�=/tmp/pip-install-1bd_1mtk/setuptools/setuptools/build_meta.py�__init__4szSetupRequirementsError.__init__N)�__name__�
__module__�__qualname__rr
r
r
rr	3sc@s&eZdZdd�Zeejdd���ZdS)�DistributioncCstttt|���}t|��dSr
)�list�map�strrr	)rrZspecifier_listr
r
r�fetch_build_eggs9szDistribution.fetch_build_eggsccs*tjj}|tj_z
dVW5|tj_XdS)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
rr8srccs(tj}dd�t_z
dVW5|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.
    cSsdSr
r
)�attrsr
r
r�<lambda>W�z+no_install_setup_requires.<locals>.<lambda>N)�
setuptoolsZ_install_setup_requires)rr
r
r�no_install_setup_requiresNs


r$cs�fdd�t���D�S)Ncs&g|]}tj�tj��|��r|�qSr
)�os�path�isdir�join)�.0�name�Za_dirr
r�
<listcomp>_s�z1_get_immediate_subdirectories.<locals>.<listcomp>)r%�listdirr+r
r+r�_get_immediate_subdirectories^sr.csD�fdd�t�|�D�}z
|\}Wntk
r>td��YnX|S)Nc3s|]}|���r|VqdSr
��endswith�r)�f��	extensionr
r�	<genexpr>ds
�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)�	directoryr4Zmatching�filer
r3r�_file_with_extensioncs
�
�
r9cCs&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_scriptqs
rBc@s`eZdZdd�Zdd�Zddd�Zdd	d
�Zddd�Zdd
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
Csz|�|�}tjdd�dg|dt_z t���|��W5QRXWn,tk
rt}z||j7}W5d}~XYnX|S)N��egg_inforD)rH�sys�argvrr�	run_setupr	r)rrG�requirements�er
r
r�_get_build_requires�s
�
z%_BuildMetaBackend._get_build_requires�setup.pyc	CsD|}d}t|��}|���dd�}W5QRXtt||d�t��dS)N�__main__z\r\nz\n�exec)rB�read�replacerS�compile�locals)rrA�__file__rr2�coder
r
rrM�s

z_BuildMetaBackend.run_setupNcCs|�|�}|j|dgd�S)N�wheel�rN�rHrPrFr
r
rr�s

�z._BuildMetaBackend.get_requires_for_build_wheelcCs|�|�}|j|gd�S)Nr[r\rFr
r
rr�s
z._BuildMetaBackend.get_requires_for_build_sdistc	Cs�tjdd�dd|gt_t��|��W5QRX|}dd�t�|�D�}t|�dkr�tt|��dkr�tj�	|t�|�d�}q8t|�dks�t
�q�q8||kr�t�tj�	||d�|�tj
|dd�|dS)	NrIZ	dist_infoz
--egg-basecSsg|]}|�d�r|�qS)z
.dist-infor/r1r
r
rr,�s
�zF_BuildMetaBackend.prepare_metadata_for_build_wheel.<locals>.<listcomp>rT)�
ignore_errors)rKrLr$rMr%r-�lenr.r&r(�AssertionError�shutil�move�rmtree)r�metadata_directoryrGZdist_info_directoryZ
dist_infosr
r
rr�s6�
����z2_BuildMetaBackend.prepare_metadata_for_build_wheelc
Cs�|�|�}tj�|�}tj|dd�tj|d���}tjdd�|d|g|dt_t	��|�
�W5QRXt||�}tj�||�}tj�
|�r�t�|�t�tj�||�|�W5QRX|S)NT)�exist_ok)�dirrIz
--dist-dirrD)rHr%r&�abspath�makedirs�tempfile�TemporaryDirectoryrKrLr$rMr9r(r;�remove�rename)rZ
setup_commandZresult_extensionZresult_directoryrGZtmp_dist_dirZresult_basename�result_pathr
r
r�_build_with_temp_dir�s(
���
 z&_BuildMetaBackend._build_with_temp_dircCs|�dgd||�S)N�bdist_wheelz.whl�rm)r�wheel_directoryrGrcr
r
rr�s
�z_BuildMetaBackend.build_wheelcCs|�dddgd||�S)N�sdistz	--formats�gztarz.tar.gzro)r�sdist_directoryrGr
r
rr�s
�z_BuildMetaBackend.build_sdist)rQ)N)N)N)NN)N)rrrrHrPrMrrrrmrrr
r
r
rrCys


�
"�
rCcs"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.
    rQc
s�ttj�}tj�tj�|��}|tjkr6tj�d|�tjd}|tjd<ztt	|�j
|d�W5|tjdd�<|tjd<XdS)Nrr@)rrKr&r%�dirnamerf�insertrL�superrtrM)rrA�sys_pathZ
script_dirZ
sys_argv_0��	__class__r
rrM�s



��
z!_BuildMetaLegacyBackend.run_setup)rQ)rrr�__doc__rM�
__classcell__r
r
ryrrt�s
rt) r{r<r%rKr?r`rrhr#r�
pkg_resourcesr�__all__�
BaseExceptionr	�distrrr$r.r9rB�objectrCrtZ_BACKENDrrrrrrr
r
r
r�<module>sD�	
m)

Filemanager

Name Type Size Permission Actions
__init__.cpython-38.pyc File 8.42 KB 0644
_deprecation_warning.cpython-38.pyc File 520 B 0644
_imp.cpython-38.pyc File 2.01 KB 0644
archive_util.cpython-38.pyc File 5.59 KB 0644
build_meta.cpython-38.pyc File 8.74 KB 0644
config.cpython-38.pyc File 19.42 KB 0644
dep_util.cpython-38.pyc File 827 B 0644
depends.cpython-38.pyc File 5.08 KB 0644
dist.cpython-38.pyc File 35.36 KB 0644
errors.cpython-38.pyc File 820 B 0644
extension.cpython-38.pyc File 1.87 KB 0644
glob.cpython-38.pyc File 3.59 KB 0644
installer.cpython-38.pyc File 2.69 KB 0644
launch.cpython-38.pyc File 851 B 0644
lib2to3_ex.cpython-38.pyc File 2.6 KB 0644
monkey.cpython-38.pyc File 4.48 KB 0644
msvc.cpython-38.pyc File 41.73 KB 0644
namespaces.cpython-38.pyc File 3.47 KB 0644
package_index.cpython-38.pyc File 31.74 KB 0644
py34compat.cpython-38.pyc File 454 B 0644
sandbox.cpython-38.pyc File 15.05 KB 0644
unicode_utils.cpython-38.pyc File 1.06 KB 0644
version.cpython-38.pyc File 296 B 0644
wheel.cpython-38.pyc File 7.03 KB 0644
windows_support.cpython-38.pyc File 993 B 0644