ok

Mini Shell

Direktori : /opt/alt/python36/lib/python3.6/site-packages/pip/_vendor/pep517/
Upload File :
Current File : //opt/alt/python36/lib/python3.6/site-packages/pip/_vendor/pep517/build.pyc

�
Bu�_c@sgdZddlZddlZddlZddlmZddlZddlmZddl	m
Z
ddlmZm
Z
ddlmZeje�Zd	�Zd
�Zd�Zd�Zddd
�Zej�Zejddd�ejddddde�ejddddde�ejdddd�d�Zedkrceej��ndS(s%Build a project using PEP 517 hooks.
i����N(ttomli(tBuildEnvironment(tPep517HookCaller(ttempdirtmkdir_p(tFileNotFoundErrorcCsMddh}|t|�ksIdjd|t|��}t|��ndS(s7
    Ensure build system has the requisite fields.
    trequiress
build-backends"Missing required fields: {missing}tmissingN(tsettformatt
ValueError(tsystemtrequiredtmessage((sI/opt/alt/python36/lib/python3.6/site-packages/pip/_vendor/pep517/build.pytvalidate_systems
	cCsAtjj|d�}t|��}tj|�}WdQX|dS(sC
    Load the build system from a source dir (pyproject.toml).
    spyproject.tomlNsbuild-system(tostpathtjointopenRtload(t
source_dirt	pyprojecttftpyproject_data((sI/opt/alt/python36/lib/python3.6/site-packages/pip/_vendor/pep517/build.pytload_systemscCsZyt|�}Wnttfk
r/i}nX|jdd�|jdddg�|S(s�
    Given a source dir, attempt to get a build system backend
    and requirements from pyproject.toml. Fallback to
    setuptools but only if the file was not found or a build
    system was not indicated.
    s
build-backends setuptools.build_meta:__legacy__Rt
setuptoolstwheel(RRtKeyErrort
setdefault(RR((sI/opt/alt/python36/lib/python3.6/site-packages/pip/_vendor/pep517/build.pyt
compat_system's
c
Cs�djt��}t||�}|i�}tjd|�|j|�tjd�t���}tjd||�djt��}t||�}	|	|i�}
tjj	||
�}t
j|tjj	|tjj|
���WdQXdS(Nsget_requires_for_build_{dist}sGot build requires: %ss$Installed dynamic build dependenciessTrying to build %s in %ssbuild_{dist}(
R	tlocalstgetattrtlogtinfotpip_installRRRRtshutiltmovetbasename(thookstenvtdisttdesttget_requires_nametget_requirestreqsttdt
build_nametbuildtfilenametsource((sI/opt/alt/python36/lib/python3.6/site-packages/pip/_vendor/pep517/build.pyt	_do_build:s

cCs�|pt|�}tjj||p'd�}t|�t|�t||d|jd��}t��+}|j	|d�t
||||�WdQXdS(NR(s
build-backendsbackend-pathR(RRRRRRRtgetRR"R2(RR(R)RR&R'((sI/opt/alt/python36/lib/python3.6/site-packages/pip/_vendor/pep517/build.pyR/Ls

Rthelps%A directory containing pyproject.tomls--binarys-btactiont
store_truetdefaults--sources-ss	--out-dirs-os>Destination in which to save the builds relative to source dircCsxttd|js|jr"dnd|js8|jr>dndf��}x$|D]}t|j||j�qTWdS(NtsdistR(tlisttfiltertNoneR1tbinaryR/Rtout_dir(targstdistsR(((sI/opt/alt/python36/lib/python3.6/site-packages/pip/_vendor/pep517/build.pytmainps
	(
t__main__(t__doc__targparsetloggingRtpip._vendorRR#tenvbuildRtwrappersRtdirtoolsRRtcompatRt	getLoggert__name__R RRRR2R;R/tArgumentParsertparsertadd_argumenttFalseR@t
parse_args(((sI/opt/alt/python36/lib/python3.6/site-packages/pip/_vendor/pep517/build.pyt<module>sB		
						

Zerion Mini Shell 1.0