Mini Kabibi Habibi

Current Path : C:/Users/ITO/AppData/Local/Programs/GIMP 2/lib/python2.7/site-packages/pep517/
Upload File :
Current File : C:/Users/ITO/AppData/Local/Programs/GIMP 2/lib/python2.7/site-packages/pep517/wrappers.pyo

�
���]c@stddlZddlmZddlZddlmZmZmZddl	Z	ddl
mZmZm
Z
ddlZddlmZddlmZeeee��d�Zed	��Zd
efd��YZdefd
��YZdefd��YZdefd��YZddd�Zddd�Zd�Zdefd��YZ dej!fd��YZ"dS(i����N(tcontextmanager(tdirnametabspathtjoin(t
check_calltcheck_outputtSTDOUT(tmkdtempi(tcompats_in_process.pyccs't�}z	|VWdtj|�XdS(N(Rtshutiltrmtree(ttd((s7/mingw64/lib/python2.7/site-packages/pep517/wrappers.pyttempdirs		tBackendUnavailablecBseZdZd�ZRS(sEWill be raised if the backend cannot be imported in the hook process.cCs
||_dS(N(t	traceback(tselfR((s7/mingw64/lib/python2.7/site-packages/pep517/wrappers.pyt__init__s(t__name__t
__module__t__doc__R(((s7/mingw64/lib/python2.7/site-packages/pep517/wrappers.pyR
stBackendInvalidcBseZdZd�ZRS(s)Will be raised if the backend is invalid.cCs||_||_||_dS(N(tbackend_nametbackend_pathtmessage(RRRR((s7/mingw64/lib/python2.7/site-packages/pep517/wrappers.pyR s		(RRRR(((s7/mingw64/lib/python2.7/site-packages/pep517/wrappers.pyRstHookMissingcBseZdZd�ZRS(s Will be raised on missing hooks.cCs#tt|�j|�||_dS(N(tsuperRRt	hook_name(RR((s7/mingw64/lib/python2.7/site-packages/pep517/wrappers.pyR(s(RRRR(((s7/mingw64/lib/python2.7/site-packages/pep517/wrappers.pyR&stUnsupportedOperationcBseZdZd�ZRS(sDMay be raised by build_sdist if the backend indicates that it can't.cCs
||_dS(N(R(RR((s7/mingw64/lib/python2.7/site-packages/pep517/wrappers.pyR/s(RRRR(((s7/mingw64/lib/python2.7/site-packages/pep517/wrappers.pyR-scCs?tjj�}|r%|j|�nt|d|d|�dS(s5The default method of calling the wrapper subprocess.tcwdtenvN(tostenvirontcopytupdateR(tcmdRt
extra_environR((s7/mingw64/lib/python2.7/site-packages/pep517/wrappers.pytdefault_subprocess_runner3scCsEtjj�}|r%|j|�nt|d|d|dt�dS(sDA method of calling the wrapper subprocess while suppressing output.RRtstderrN(RRR R!RR(R"RR#R((s7/mingw64/lib/python2.7/site-packages/pep517/wrappers.pytquiet_subprocess_runner<scCs�tjj|�r!td��ntjj|�}tjjtjj||��}tjj|�}tjj|�}tjj||g�|kr�td��n|S(s�Normalise and check a backend path.

    Ensure that the requested backend path is specified as a relative path,
    and resolves to a location under the given source tree.

    Return an absolute version of the requested path.
    spaths must be relatives paths must be inside source tree(	Rtpathtisabst
ValueErrorRtnormpathRtnormcasetcommonprefix(tsource_treet	requestedt
abs_sourcet
abs_requestedtnorm_sourcetnorm_requested((s7/mingw64/lib/python2.7/site-packages/pep517/wrappers.pytnorm_and_checkEs!tPep517HookCallercBsweZdZd	d	d�Zed��Zd	d�Zd	ed�Z	d	d	d�Z
d	d�Zd	d�Zd�Z
RS(
seA wrapper around a source directory to be built with a PEP 517 backend.

    source_dir : The path to the source directory, containing pyproject.toml.
    build_backend : The build backend spec, as per PEP 517, from
        pyproject.toml.
    backend_path : The backend path, as per PEP 517, from pyproject.toml.
    runner : A callable that invokes the wrapper subprocess.

    The 'runner', if provided, must expect the following:
        cmd : a list of strings representing the command and arguments to
            execute, as would be passed to e.g. 'subprocess.check_call'.
        cwd : a string representing the working directory that must be
            used for the subprocess. Corresponds to the provided source_dir.
        extra_environ : a dict mapping environment variable names to values
            which must be set for the subprocess execution.
    cCsq|dkrt}nt|�|_||_|r[g|D]}t|j|�^q:}n||_||_dS(N(tNoneR$Rt
source_dirt
build_backendR3Rt_subprocess_runner(RR6R7Rtrunnertp((s7/mingw64/lib/python2.7/site-packages/pep517/wrappers.pyRns		(	ccs$|j}||_dV||_dS(s\A context manager for temporarily overriding the default subprocess
        runner.
        N(R8(RR9tprev((s7/mingw64/lib/python2.7/site-packages/pep517/wrappers.pytsubprocess_runner�s		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>((s7/mingw64/lib/python2.7/site-packages/pep517/wrappers.pyR=�s
cCs+|jdit|�d6|d6|d6�S(sqPrepare 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 (unless _allow_fallback is
        False).
        t prepare_metadata_for_build_wheeltmetadata_directoryR>t_allow_fallback(R?R(RRAR>RB((s7/mingw64/lib/python2.7/site-packages/pep517/wrappers.pyR@�s
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>RAN(R5RR?(RRDR>RA((s7/mingw64/lib/python2.7/site-packages/pep517/wrappers.pyRC�s
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>((s7/mingw64/lib/python2.7/site-packages/pep517/wrappers.pyRE�s
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(RRGR>((s7/mingw64/lib/python2.7/site-packages/pep517/wrappers.pyRF�s
c	
Cs�tjddkr(|jjd�}n	|j}i|d6}|jr�tjj|j�}tjddkr�|jtj��}n||d<nt	��/}i|d6}t
j|t|d�dd�|j
tjt||gd	|jd
|�t
jt|d��}|jd�r9t|jd
d���n|jd�rct|jd
d���n|jd�r�td|jd|jd|jdd���n|jd�r�t|��n|dSWdQXdS(NiitASCIItPEP517_BUILD_BACKENDtPEP517_BACKEND_PATHtkwargss
input.jsontindentRR#soutput.jsontunsupportedRtt
no_backendtbackend_invalidRRRt
backend_errorthook_missingt
return_val(tsystversion_infoR7tencodeRRtpathsepRtgetfilesystemencodingRRt
write_jsontpjoinR8t
executablet_in_proc_scriptR6t	read_jsontgetRR
RR(	RRRKR7R#RRt
hook_inputtdata((s7/mingw64/lib/python2.7/site-packages/pep517/wrappers.pyR?�s<	
	

			N(RRRR5RRR<R=tTrueR@RCRERFR?(((s7/mingw64/lib/python2.7/site-packages/pep517/wrappers.pyR4]s
t
LoggerWrappercBsAeZdZd�Zd�Zed��Zd�Zd�ZRS(sd
    Read messages from a pipe and redirect them
    to a logger (see python's logging module).
    cCsftjj|�t|_||_||_tj�\|_	|_
tj|j	�|_|j
�dS(N(t	threadingtThreadRRatdaemontloggertlevelRtpipetfd_readtfd_writetfdopentreadertstart(RRfRg((s7/mingw64/lib/python2.7/site-packages/pep517/wrappers.pyRs			cCs|jS(N(Rj(R((s7/mingw64/lib/python2.7/site-packages/pep517/wrappers.pytfilenoscCs|jtj�r|d S|S(Ni����(tendswithRtlinesep(tmsg((s7/mingw64/lib/python2.7/site-packages/pep517/wrappers.pytremove_newline!scCs.x'|jD]}|j|j|��q
WdS(N(Rlt_writeRr(Rtline((s7/mingw64/lib/python2.7/site-packages/pep517/wrappers.pytrun%scCs|jj|j|�dS(N(RftlogRg(RR((s7/mingw64/lib/python2.7/site-packages/pep517/wrappers.pyRs)s(	RRRRRntstaticmethodRrRuRs(((s7/mingw64/lib/python2.7/site-packages/pep517/wrappers.pyRbs	
		(#Rct
contextlibRRtos.pathRRRRZR	t
subprocessRRRRTttempfileRRNRt__file__R\Rt	ExceptionR
RRRR5R$R&R3tobjectR4RdRb(((s7/mingw64/lib/python2.7/site-packages/pep517/wrappers.pyt<module>s&				�