Hacked By AnonymousFox

Current Path : /proc/thread-self/root/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/pep517/
Upload File :
Current File : //proc/thread-self/root/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/pep517/build.pyc

�
�Rec@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((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/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((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/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((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/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((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/pep517/build.pyt	_do_build:s

c	Cs�|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'((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/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(((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/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(((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/pep517/build.pyt<module>sB		
						

Hacked By AnonymousFox1.0, Coded By AnonymousFox