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__/envbuild.cpython-36.pyc
3

�N�a��@s�dZddlZddlZddlZddlZddlmZddlZddlm	Z	ddl
mZddlm
Z
ddlmZmZeje�Zd	d
�ZGdd�de�Zdd
d�Zddd�ZdS)zIBuild wheels/sdists by installing build deps to a temporary environment.
�N)�
check_call)�	get_paths)�mkdtemp�)�	toml_load)�Pep517HookCaller�
LoggerWrappercCsJtjtjj|d�d��}t|�}WdQRX|d}|d|d|jd�fS)Nzpyproject.toml�rbzbuild-system�requiresz
build-backendzbackend-path)�io�open�os�path�joinr�get)�
source_dir�fZpyproject_dataZbuildsys�r�/usr/lib/python3.6/envbuild.py�_load_pyprojectsrc@s6eZdZdZdZddd�Zdd�Zdd	�Zd
d�ZdS)
�BuildEnvironmentz�Context manager to install build deps in a simple temporary environment

    Based on code I wrote for pip, which is MIT licensed.
    NTcCs
||_dS)N)�_cleanup)�selfZcleanuprrr�__init__=szBuildEnvironment.__init__cCs�tdd�|_tjd|j�tjjdd�|_tjjdd�|_tj	dkrHdnd}t
||j|jd�d	�}|d
}|jr�|tj|jtjd<n|tjtjtjd<|d|dkr�|d}n|dtj|d}|jr�|tj|jtjd<n
|tjd<|S)
Nzpep517-build-env-)�prefixzTemporary build environment: %s�PATH�
PYTHONPATH�nt�posix_prefix)�base�platbase)�vars�scripts�purelib�platlib)
rr�log�infor
�environr�	save_path�save_pythonpath�namer�pathsep�defpath)rZinstall_schemeZinstall_dirsr"Zlib_dirsrrr�	__enter__@s*


zBuildEnvironment.__enter__cCsT|sdStjd|�tjddddd|jgt|�}t|tttj	�tttj
�d�dS)	zAInstall dependencies into this env by calling pip in a subprocessNzCalling pip to install %sz-mZpip�installz--ignore-installedz--prefix)�stdout�stderr)r%r&�sys�
executabler�listrr�logging�INFOZERROR)r�reqs�cmdrrr�pip_install`s
zBuildEnvironment.pip_installcCs~|jo|jdk	otjj|j�}|r.tj|j�|jdkrHtjjdd�n|jtjd<|j	dkrntjjdd�n|j	tjd<dS)Nrr)
rrr
�isdir�shutilZrmtreer(r'�popr))r�exc_typeZexc_valZexc_tbZ
needs_cleanuprrr�__exit__ns


zBuildEnvironment.__exit__)T)	�__name__�
__module__�__qualname__�__doc__rrr-r8r=rrrrr!s
 rc	
Csb|dkri}t|�\}}}t|||�}t��,}|j|�|j|�}|j|�|j||�SQRXdS)amBuild a wheel from a source directory using PEP 517 hooks.

    :param str source_dir: Source directory containing pyproject.toml
    :param str wheel_dir: Target directory to create wheel in
    :param dict config_settings: Options to pass to build backend

    This is a blocking function which will run pip in a subprocess to install
    build requirements.
    N)rrrr8Zget_requires_for_build_wheel�build_wheel)	rZ	wheel_dir�config_settingsr
�backend�backend_path�hooks�envr6rrrrB�s



rBc	
Csb|dkri}t|�\}}}t|||�}t��,}|j|�|j|�}|j|�|j||�SQRXdS)amBuild an sdist from a source directory using PEP 517 hooks.

    :param str source_dir: Source directory containing pyproject.toml
    :param str sdist_dir: Target directory to place sdist in
    :param dict config_settings: Options to pass to build backend

    This is a blocking function which will run pip in a subprocess to install
    build requirements.
    N)rrrr8Zget_requires_for_build_sdist�build_sdist)	rZ	sdist_dirrCr
rDrErFrGr6rrrrH�s



rH)N)N)rArr
r4r:�
subprocessrr1�	sysconfigrZtempfiler�compatrZwrappersrrZ	getLoggerr>r%r�objectrrBrHrrrr�<module>s
a


Youez - 2016 - github.com/yon3zu
LinuXploit