????

Your IP : 216.73.216.152


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

�
}�\]c@s�ddlmZddlZddlmZmZmZddlZddl	m
Z
ddlZddlm
Z
ddlmZeeee��d�Zed	��Zd
efd��YZdefd
��YZddd�Zdefd��YZdS(i����(tcontextmanagerN(tdirnametabspathtjoin(t
check_call(tmkdtempi(tcompats_in_process.pyccs't�}z	|VWdtj|�XdS(N(Rtshutiltrmtree(ttd((s:/tmp/pip-install-ewDPok/pip/pip/_vendor/pep517/wrappers.pyttempdirs		tBackendUnavailablecBseZdZRS(sEWill be raised if the backend cannot be imported in the hook process.(t__name__t
__module__t__doc__(((s:/tmp/pip-install-ewDPok/pip/pip/_vendor/pep517/wrappers.pyRstUnsupportedOperationcBseZdZRS(sDMay be raised by build_sdist if the backend indicates that it can't.(RR
R(((s:/tmp/pip-install-ewDPok/pip/pip/_vendor/pep517/wrappers.pyRscCs?tjj�}|r%|j|�nt|d|d|�dS(s5The default method of calling the wrapper subprocess.tcwdtenvN(tostenvirontcopytupdateR(tcmdRt
extra_environR((s:/tmp/pip-install-ewDPok/pip/pip/_vendor/pep517/wrappers.pytdefault_subprocess_runnerstPep517HookCallercBsneZdZd�Zed��Zd	d�Zd	d�Zd	d	d�Z	d	d�Z
d	d�Zd�ZRS(
s�A wrapper around a source directory to be built with a PEP 517 backend.

    source_dir : The path to the source directory, containing pyproject.toml.
    backend : The build backend spec, as per PEP 517, from pyproject.toml.
    cCs%t|�|_||_t|_dS(N(Rt
source_dirt
build_backendRt_subprocess_runner(tselfRR((s:/tmp/pip-install-ewDPok/pip/pip/_vendor/pep517/wrappers.pyt__init__.s	ccs$|j}||_dV||_dS(N(R(Rtrunnertprev((s:/tmp/pip-install-ewDPok/pip/pip/_vendor/pep517/wrappers.pytsubprocess_runner5s		cCs|jdi|d6�S(sGIdentify packages required for building a wheel

        Returns a list of dependency specifications, e.g.:
            ["wheel >= 0.25", "setuptools"]

        This does not include requirements specified in pyproject.toml.
        It returns the result of calling the equivalently named hook in a
        subprocess.
        tget_requires_for_build_wheeltconfig_settings(t
_call_hook(RR#((s:/tmp/pip-install-ewDPok/pip/pip/_vendor/pep517/wrappers.pyR"<s
cCs$|jdit|�d6|d6�S(sGPrepare a *.dist-info folder with metadata for this project.

        Returns the name of the newly created folder.

        If the build backend defines a hook with this name, it will be called
        in a subprocess. If not, the backend will be asked to build a wheel,
        and the dist-info extracted from that.
        t prepare_metadata_for_build_wheeltmetadata_directoryR#(R$R(RR&R#((s:/tmp/pip-install-ewDPok/pip/pip/_vendor/pep517/wrappers.pyR%Js

cCsF|dk	rt|�}n|jdit|�d6|d6|d6�S(svBuild a wheel from this project.

        Returns the name of the newly created file.

        In general, this will call the 'build_wheel' hook in the backend.
        However, if that was previously called by
        'prepare_metadata_for_build_wheel', and the same metadata_directory is
        used, the previously built wheel will be copied to wheel_directory.
        tbuild_wheeltwheel_directoryR#R&N(tNoneRR$(RR(R#R&((s:/tmp/pip-install-ewDPok/pip/pip/_vendor/pep517/wrappers.pyR'Ys
cCs|jdi|d6�S(s<Identify packages required for building a wheel

        Returns a list of dependency specifications, e.g.:
            ["setuptools >= 26"]

        This does not include requirements specified in pyproject.toml.
        It returns the result of calling the equivalently named hook in a
        subprocess.
        tget_requires_for_build_sdistR#(R$(RR#((s:/tmp/pip-install-ewDPok/pip/pip/_vendor/pep517/wrappers.pyR*ms
cCs$|jdit|�d6|d6�S(s�Build an sdist from this project.

        Returns the name of the newly created file.

        This calls the 'build_sdist' backend hook in a subprocess.
        tbuild_sdisttsdist_directoryR#(R$R(RR,R#((s:/tmp/pip-install-ewDPok/pip/pip/_vendor/pep517/wrappers.pyR+{s
cCs�tjddkr(|jjd�}n	|j}t���}tji|d6t|d�dd�|jtj	t
||gd|jdi|d	6�tjt|d
��}|j
d�r�t�n|j
d�r�t�n|d
SWdQXdS(NiitASCIItkwargss
input.jsontindentRRtPEP517_BUILD_BACKENDsoutput.jsontunsupportedt
no_backendt
return_val(tsystversion_infoRtencodeR
Rt
write_jsontpjoinRt
executablet_in_proc_scriptRt	read_jsontgetRR(Rt	hook_nameR.RR	tdata((s:/tmp/pip-install-ewDPok/pip/pip/_vendor/pep517/wrappers.pyR$�s 				N(
RR
RRRR!R)R"R%R'R*R+R$(((s:/tmp/pip-install-ewDPok/pip/pip/_vendor/pep517/wrappers.pyR(s	(t
contextlibRRtos.pathRRRR8Rt
subprocessRR4ttempfileRtRt__file__R:R
t	ExceptionRRR)RtobjectR(((s:/tmp/pip-install-ewDPok/pip/pip/_vendor/pep517/wrappers.pyt<module>s