????

Your IP : 216.73.216.152


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

�
}�\]c@sbdZddlZddlZddlZddlZddlmZddlZddlZddl	Z	ddl
mZddlm
Z
eje�Zejd��Zd�Zd	�Zdd
�Zej�Zejddd
�ejddddde�ejddddde�ejdddd�d�Zedkr^eej��ndS(s%Build a project using PEP 517 hooks.
i����N(tpytomli(tBuildEnvironment(tPep517HookCallerccs*tj�}z	|VWdtj|�XdS(N(ttempfiletmkdtemptshutiltrmtree(ttd((s7/tmp/pip-install-ewDPok/pip/pip/_vendor/pep517/build.pyttempdirs	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}(
tformattlocalstgetattrtlogtinfotpip_installRtostpathtjoinRtmovetbasename(thookstenvtdisttdesttget_requires_nametget_requirestreqsRt
build_nametbuildtfilenametsource((s7/tmp/pip-install-ewDPok/pip/pip/_vendor/pep517/build.pyt	_do_builds

cOsFytj||�SWn+tk
rA}|jtjkrB�qBnXdS(sWLike `mkdir`, but does not raise an exception if the
    directory already exists.
    N(RtmkdirtOSErrorterrnotEEXIST(targstkwargstexc((s7/tmp/pip-install-ewDPok/pip/pip/_vendor/pep517/build.pytmkdir_p-s
cCs�tjj|d�}tjj||p*d�}t|�t|��}tj|�}WdQX|d}|d}|d}t||�}	t��'}
|
j	|�t
|	|
||�WdQXdS(Nspyproject.tomlRsbuild-systemtrequiress
build-backend(RRRR'topenRtloadRRRR(t
source_dirRRt	pyprojecttftpyproject_datatbuildsysR(tbackendRR((s7/tmp/pip-install-ewDPok/pip/pip/_vendor/pep517/build.pyR8s




R+thelps%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(Ntsdisttwheel(tlisttfiltertNoneRtbinaryRR+tout_dir(R$tdistsR((s7/tmp/pip-install-ewDPok/pip/pip/_vendor/pep517/build.pytmain`s
	(
t__main__(t__doc__targparsetloggingRt
contextlibtpip._vendorRRR"RtenvbuildRtwrappersRt	getLoggert__name__RtcontextmanagerRRR'R9RtArgumentParsertparsertadd_argumenttFalseR=t
parse_args(((s7/tmp/pip-install-ewDPok/pip/pip/_vendor/pep517/build.pyt<module>sB