404

[ Avaa Bypassed ]




Upload:

Command:

elspacio@18.216.89.144: ~ $
3

9��f'�@s�dZddlZddlZddlZddlZddlZddlZddlZGdd�de�Z	Gdd�dej
j�Zddd	�Zd
d�Z
dd
�Zdd�Zddd�Zddd�Zddd�Zddd�Zddd�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.
�Nc@seZdZdd�ZdS)�SetupRequirementsErrorcCs
||_dS)N)�
specifiers)�selfr�r� /usr/lib/python3.6/build_meta.py�__init__(szSetupRequirementsError.__init__N)�__name__�
__module__�__qualname__rrrrrr'src@s&eZdZdd�Zeejdd���ZdS)�DistributioncCst|��dS)N)r)rrrrr�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)�clsZorigrrr�patch0s

zDistribution.patchN)rr	r
r�classmethod�
contextlib�contextmanagerrrrrrr,sr�setup.pycCsH|}d}ttdt�|�}|j�jdd�}|j�tt||d�t��dS)N�__main__�openz\r\nz\n�exec)	�getattr�tokenizer�read�replace�closer�compile�locals)Zsetup_script�__file__r�f�coderrr�
_run_setup@sr!cCs|pi}|jdg�|S)Nz--global-option)�
setdefault)�config_settingsrrr�_fix_configKsr$cCs~t|�}ddg}tjdd�dg|dt_ytj��t�WdQRXWn,tk
rx}z||j7}WYdd}~XnX|S)N�
setuptoolsZwheel�Zegg_infoz--global-option)r$�sys�argvrrr!rr)r#Zrequirements�errr�_get_build_requiresQs
r*cs�fdd�tj��D�S)Ncs&g|]}tjjtjj�|��r|�qSr)�os�path�isdir�join)�.0�name)�a_dirrr�
<listcomp>asz1_get_immediate_subdirectories.<locals>.<listcomp>)r+�listdir)r1r)r1r�_get_immediate_subdirectories`sr4cCst|�}t|�S)N)r$r*)r#rrr�get_requires_for_build_wheelesr5cCst|�}t|�S)N)r$r*)r#rrr�get_requires_for_build_sdistjsr6cCs�tjdd�dd|gt_t�|}x`dd�tj|�D�}t|�dkrptt|��dkrptjj|tj|�d�}q&t|�dks�t	�Pq&W||kr�t
jtjj||d�|�t
j|dd�|dS)	Nr&Z	dist_infoz
--egg-basecSsg|]}|jd�r|�qS)z
.dist-info)�endswith)r/rrrrr2usz4prepare_metadata_for_build_wheel.<locals>.<listcomp>rT)�
ignore_errors)
r'r(r!r+r3�lenr4r,r.�AssertionError�shutilZmove�rmtree)�metadata_directoryr#Zdist_info_directoryZ
dist_infosrrr� prepare_metadata_for_build_wheelos$r>cCs�t|�}tjj|�}tjdd�dg|dt_t�|dkrVtj|�tj	d|�dd�tj
|�D�}t|�dkszt�|dS)Nr&Zbdist_wheelz--global-option�distcSsg|]}|jd�r|�qS)z.whl)r7)r/rrrrr2�szbuild_wheel.<locals>.<listcomp>r)
r$r+r,�abspathr'r(r!r;r<�copytreer3r9r:)Zwheel_directoryr#r=Zwheelsrrr�build_wheel�s
rBcCs�t|�}tjj|�}tjdd�dg|dt_t�|dkrVtj|�tj	d|�dd�tj
|�D�}t|�dkszt�|dS)Nr&Zsdistz--global-optionr?cSsg|]}|jd�r|�qS)z.tar.gz)r7)r/rrrrr2�szbuild_sdist.<locals>.<listcomp>r)
r$r+r,r@r'r(r!r;r<rAr3r9r:)Zsdist_directoryr#Zsdistsrrr�build_sdist�s
rC)r)N)N)N)NN)N)�__doc__r+r'rr;rr%r
�
BaseExceptionrr?rr!r$r*r4r5r6r>rBrCrrrr�<module>s&






Filemanager

Name Type Size Permission Actions
__init__.cpython-36.opt-1.pyc File 6.07 KB 0644
__init__.cpython-36.pyc File 6.07 KB 0644
archive_util.cpython-36.opt-1.pyc File 4.95 KB 0644
archive_util.cpython-36.pyc File 4.95 KB 0644
build_meta.cpython-36.opt-1.pyc File 5.62 KB 0644
build_meta.cpython-36.pyc File 5.7 KB 0644
config.cpython-36.opt-1.pyc File 14.64 KB 0644
config.cpython-36.pyc File 14.64 KB 0644
dep_util.cpython-36.opt-1.pyc File 786 B 0644
dep_util.cpython-36.pyc File 786 B 0644
depends.cpython-36.opt-1.pyc File 5.09 KB 0644
depends.cpython-36.pyc File 5.09 KB 0644
dist.cpython-36.opt-1.pyc File 35.9 KB 0644
dist.cpython-36.pyc File 35.94 KB 0644
extension.cpython-36.opt-1.pyc File 1.86 KB 0644
extension.cpython-36.pyc File 1.86 KB 0644
glibc.cpython-36.opt-1.pyc File 1.44 KB 0644
glibc.cpython-36.pyc File 1.44 KB 0644
glob.cpython-36.opt-1.pyc File 3.63 KB 0644
glob.cpython-36.pyc File 3.69 KB 0644
launch.cpython-36.opt-1.pyc File 785 B 0644
launch.cpython-36.pyc File 785 B 0644
lib2to3_ex.cpython-36.opt-1.pyc File 2.31 KB 0644
lib2to3_ex.cpython-36.pyc File 2.31 KB 0644
monkey.cpython-36.opt-1.pyc File 4.5 KB 0644
monkey.cpython-36.pyc File 4.5 KB 0644
msvc.cpython-36.opt-1.pyc File 33.66 KB 0644
msvc.cpython-36.pyc File 33.66 KB 0644
namespaces.cpython-36.opt-1.pyc File 3.52 KB 0644
namespaces.cpython-36.pyc File 3.52 KB 0644
package_index.cpython-36.opt-1.pyc File 31.41 KB 0644
package_index.cpython-36.pyc File 31.41 KB 0644
pep425tags.cpython-36.opt-1.pyc File 7.1 KB 0644
pep425tags.cpython-36.pyc File 7.1 KB 0644
py27compat.cpython-36.opt-1.pyc File 742 B 0644
py27compat.cpython-36.pyc File 742 B 0644
py31compat.cpython-36.opt-1.pyc File 1.45 KB 0644
py31compat.cpython-36.pyc File 1.45 KB 0644
py33compat.cpython-36.opt-1.pyc File 1.3 KB 0644
py33compat.cpython-36.pyc File 1.3 KB 0644
py36compat.cpython-36.opt-1.pyc File 2.09 KB 0644
py36compat.cpython-36.pyc File 2.09 KB 0644
sandbox.cpython-36.opt-1.pyc File 15.29 KB 0644
sandbox.cpython-36.pyc File 15.29 KB 0644
site-patch.cpython-36.opt-1.pyc File 1.4 KB 0644
site-patch.cpython-36.pyc File 1.4 KB 0644
ssl_support.cpython-36.opt-1.pyc File 6.56 KB 0644
ssl_support.cpython-36.pyc File 6.56 KB 0644
unicode_utils.cpython-36.opt-1.pyc File 1.07 KB 0644
unicode_utils.cpython-36.pyc File 1.07 KB 0644
version.cpython-36.opt-1.pyc File 259 B 0644
version.cpython-36.pyc File 259 B 0644
wheel.cpython-36.opt-1.pyc File 6.01 KB 0644
wheel.cpython-36.pyc File 6.04 KB 0644
windows_support.cpython-36.opt-1.pyc File 942 B 0644
windows_support.cpython-36.pyc File 942 B 0644