Viewing File: /opt/alt/python35/lib/python3.5/site-packages/pip/_vendor/pep517/build.pyo

ó
“tÆ_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/python35/lib/python3.5/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/python35/lib/python3.5/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/python35/lib/python3.5/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/python35/lib/python3.5/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/python35/lib/python3.5/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/python35/lib/python3.5/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/python35/lib/python3.5/site-packages/pip/_vendor/pep517/build.pyt<module>sB		
						
Back to Directory File Manager