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/pip/_vendor/pep517/__pycache__/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : C:/cygwin64/lib/python3.6/site-packages/pip/_vendor/pep517/__pycache__/wrappers.cpython-36.pyc
3

�N�au4�@sddlZddlmZddlZddlmZmZddlZddl	m
Z
mZmZddl
Z
ddlmZddlmZddlmZd	d
ddd
ddgZedd��ZGdd	�d	e�ZGdd
�d
e�ZGdd�de�ZGdd�de�Zddd
�Zddd�Zdd�ZGdd�de�ZGdd�dej �Z!dS)�N)�contextmanager)�abspath�join)�
check_call�check_output�STDOUT)�mkdtemp�)�compat)�_in_proc_script_path�BackendUnavailable�BackendInvalid�HookMissing�UnsupportedOperation�default_subprocess_runner�quiet_subprocess_runner�Pep517HookCallerccs"t�}z
|VWdtj|�XdS)N)r�shutilZrmtree)�td�r�/usr/lib/python3.6/wrappers.py�tempdirs
rc@seZdZdZdd�ZdS)rzEWill be raised if the backend cannot be imported in the hook process.cCs
||_dS)N)�	traceback)�selfrrrr�__init__#szBackendUnavailable.__init__N)�__name__�
__module__�__qualname__�__doc__rrrrrr!sc@seZdZdZdd�ZdS)r
z)Will be raised if the backend is invalid.cCs||_||_||_dS)N)�backend_name�backend_path�message)rrr r!rrrr)szBackendInvalid.__init__N)rrrrrrrrrr
'scs eZdZdZ�fdd�Z�ZS)rz Will be raised on missing hooks.cstt|�j|�||_dS)N)�superrr�	hook_name)rr#)�	__class__rrr1szHookMissing.__init__)rrrrr�
__classcell__rr)r$rr/sc@seZdZdZdd�ZdS)rzDMay be raised by build_sdist if the backend indicates that it can't.cCs
||_dS)N)r)rrrrrr8szUnsupportedOperation.__init__N)rrrrrrrrrr6scCs*tjj�}|r|j|�t|||d�dS)z5The default method of calling the wrapper subprocess.)�cwd�envN)�os�environ�copy�updater)�cmdr&�
extra_environr'rrrr<s

cCs,tjj�}|r|j|�t|||td�dS)zDA method of calling the wrapper subprocess while suppressing output.)r&r'�stderrN)r(r)r*r+rr)r,r&r-r'rrrrEs

cCsntjj|�rtd��tjj|�}tjjtjj||��}tjj|�}tjj|�}tjj||g�|krjtd��|S)z�Normalise and check a backend path.

    Ensure that the requested backend path is specified as a relative path,
    and resolves to a location under the given source tree.

    Return an absolute version of the requested path.
    zpaths must be relativez paths must be inside source tree)	r(�path�isabs�
ValueErrorr�normpathr�normcase�commonprefix)Zsource_treeZ	requestedZ
abs_sourceZ
abs_requestedZnorm_sourceZnorm_requestedrrr�norm_and_checkNsr5c@s�eZdZdZddd�Zedd��Zdd�Zdd	d
�Zddd
�Z	ddd�Z
d dd�Zd!dd�Zd"dd�Z
d#dd�Zd$dd�Zdd�ZdS)%ra�A wrapper around a source directory to be built with a PEP 517 backend.

    :param source_dir: The path to the source directory, containing
        pyproject.toml.
    :param build_backend: The build backend spec, as per PEP 517, from
        pyproject.toml.
    :param backend_path: The backend path, as per PEP 517, from pyproject.toml.
    :param runner: A callable that invokes the wrapper subprocess.
    :param python_executable: The Python executable used to invoke the backend

    The 'runner', if provided, must expect the following:

    - cmd: a list of strings representing the command and arguments to
      execute, as would be passed to e.g. 'subprocess.check_call'.
    - cwd: a string representing the working directory that must be
      used for the subprocess. Corresponds to the provided source_dir.
    - extra_environ: a dict mapping environment variable names to values
      which must be set for the subprocess execution.
    NcsR|dkrt}t|��_|�_|r2�fdd�|D�}|�_|�_|sHtj}|�_dS)Ncsg|]}t�j|��qSr)r5�
source_dir)�.0�p)rrr�
<listcomp>�sz-Pep517HookCaller.__init__.<locals>.<listcomp>)	rrr6�
build_backendr �_subprocess_runner�sys�
executable�python_executable)rr6r:r �runnerr>r)rrrzs
zPep517HookCaller.__init__ccs$|j}||_z
dVWd||_XdS)z\A context manager for temporarily overriding the default subprocess
        runner.
        N)r;)rr?�prevrrr�subprocess_runner�s

z"Pep517HookCaller.subprocess_runnercCs|jdi�S)z>Return the list of optional features supported by the backend.�_supported_features)�
_call_hook)rrrrrB�sz$Pep517HookCaller._supported_featurescCs|jdd|i�S)aIIdentify packages required for building a wheel

        Returns a list of dependency specifications, e.g.::

            ["wheel >= 0.25", "setuptools"]

        This does not include requirements specified in pyproject.toml.
        It returns the result of calling the equivalently named hook in a
        subprocess.
        �get_requires_for_build_wheel�config_settings)rC)rrErrrrD�sz-Pep517HookCaller.get_requires_for_build_wheelTcCs|jdt|�||d��S)auPrepare a ``*.dist-info`` folder with metadata for this project.

        Returns the name of the newly created folder.

        If the build backend defines a hook with this name, it will be called
        in a subprocess. If not, the backend will be asked to build a wheel,
        and the dist-info extracted from that (unless _allow_fallback is
        False).
        � prepare_metadata_for_build_wheel)�metadata_directoryrE�_allow_fallback)rCr)rrGrErHrrrrF�sz1Pep517HookCaller.prepare_metadata_for_build_wheelcCs(|dk	rt|�}|jdt|�||d��S)avBuild a wheel from this project.

        Returns the name of the newly created file.

        In general, this will call the 'build_wheel' hook in the backend.
        However, if that was previously called by
        'prepare_metadata_for_build_wheel', and the same metadata_directory is
        used, the previously built wheel will be copied to wheel_directory.
        N�build_wheel)�wheel_directoryrErG)rrC)rrJrErGrrrrI�szPep517HookCaller.build_wheelcCs|jdd|i�S)aSIdentify packages required for building an editable wheel

        Returns a list of dependency specifications, e.g.::

            ["wheel >= 0.25", "setuptools"]

        This does not include requirements specified in pyproject.toml.
        It returns the result of calling the equivalently named hook in a
        subprocess.
        �get_requires_for_build_editablerE)rC)rrErrrrK�sz0Pep517HookCaller.get_requires_for_build_editablecCs|jdt|�||d��S)aPrepare a ``*.dist-info`` folder with metadata for this project.

        Returns the name of the newly created folder.

        If the build backend defines a hook with this name, it will be called
        in a subprocess. If not, the backend will be asked to build an editable
        wheel, and the dist-info extracted from that (unless _allow_fallback is
        False).
        �#prepare_metadata_for_build_editable)rGrErH)rCr)rrGrErHrrrrL�sz4Pep517HookCaller.prepare_metadata_for_build_editablecCs(|dk	rt|�}|jdt|�||d��S)a�Build an editable wheel from this project.

        Returns the name of the newly created file.

        In general, this will call the 'build_editable' hook in the backend.
        However, if that was previously called by
        'prepare_metadata_for_build_editable', and the same metadata_directory
        is used, the previously built wheel will be copied to wheel_directory.
        N�build_editable)rJrErG)rrC)rrJrErGrrrrM�szPep517HookCaller.build_editablecCs|jdd|i�S)a>Identify packages required for building a wheel

        Returns a list of dependency specifications, e.g.::

            ["setuptools >= 26"]

        This does not include requirements specified in pyproject.toml.
        It returns the result of calling the equivalently named hook in a
        subprocess.
        �get_requires_for_build_sdistrE)rC)rrErrrrNsz-Pep517HookCaller.get_requires_for_build_sdistcCs|jdt|�|d��S)z�Build an sdist from this project.

        Returns the name of the newly created file.

        This calls the 'build_sdist' backend hook in a subprocess.
        �build_sdist)�sdist_directoryrE)rCr)rrPrErrrrOszPep517HookCaller.build_sdistcCs`tjddkr|jjd�}n|j}d|i}|jrbtjj|j�}tjddkrZ|jtj��}||d<t	���}d|i}t
j|t|d�dd�t
��.}|j}	|j|	tt|��||g|j|d	�WdQRXt
jt|d
��}
|
jd�r�t|
jdd
���|
jd��rt|
jdd
���|
jd��r.t|j|j|
jdd
�d��|
jd��rNt|
jd��pJ|��|
dSQRXdS)Nr��ASCIIZPEP517_BUILD_BACKENDZPEP517_BACKEND_PATH�kwargsz
input.json)�indent)r&r-zoutput.jsonZunsupportedr�Z
no_backendZbackend_invalidZ
backend_error)rr r!Zhook_missingZmissing_hook_nameZ
return_val)r<�version_infor:�encoder r(�pathsepr�getfilesystemencodingrr
Z
write_json�pjoinrr>r;r�strr6Z	read_json�getrrr
r)rr#rSr:r-r rZ
hook_inputZscriptZpython�datarrrrC&s@
zPep517HookCaller._call_hook)NNN)N)NT)NN)N)NT)NN)N)N)rrrrrrrArBrDrFrIrKrLrMrNrOrCrrrrrfs&








c@s<eZdZdZdd�Zdd�Zedd��Zdd	�Zd
d�Z	dS)
�
LoggerWrapperzd
    Read messages from a pipe and redirect them
    to a logger (see python's logging module).
    cCsHtjj|�d|_||_||_tj�\|_|_	tj
|j�|_|j�dS)NT)
�	threading�ThreadrZdaemon�logger�levelr(�pipeZfd_read�fd_write�fdopen�reader�start)rrarbrrrr^szLoggerWrapper.__init__cCs|jS)N)rd)rrrr�filenokszLoggerWrapper.filenocCs|jtj�r|dd�S|S)Nr	���)�endswithr(�linesep)�msgrrr�remove_newlinenszLoggerWrapper.remove_newlinecCs$x|jD]}|j|j|��qWdS)N)rf�_writerm)r�linerrr�runrszLoggerWrapper.runcCs|jj|j|�dS)N)ra�logrb)rr!rrrrnvszLoggerWrapper._writeN)
rrrrrrh�staticmethodrmrprnrrrrr^Xs
r^)NN)NN)"r_�
contextlibrr(Zos.pathrrrZr�
subprocessrrrr<ZtempfilerrUr
Z
in_processr�__all__r�	Exceptionrr
rrrrr5�objectrr`r^rrrr�<module>s6	
	
	s

Youez - 2016 - github.com/yon3zu
LinuXploit