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/_in_process.pyo

�
���]c@s�dZddlmZddlmZddlZddlZddlmZddlZddl	Z	ddl
Z
ddlZddlZde
fd��YZde
fd	��YZd
e
fd��YZd�Zd
�Zd�Zd�ZdZd�Zd�Zd�Zdd�Zd�Zde
fd��YZde
fd��YZd�ZdddddhZd �Z e!d!kr�e �ndS("sgThis is invoked in a subprocess to call the build backend hooks.

It expects:
- Command line args: hook_name, control_dir
- Environment variables:
      PEP517_BUILD_BACKEND=entry.point:spec
      PEP517_BACKEND_PATH=paths (separated with os.pathsep)
- control_dir/input.json:
  - {"kwargs": {...}}

Results:
- control_dir/output.json
  - {"return_val": ...}
i����(tglob(t
import_moduleN(tjointBackendUnavailablecBseZdZd�ZRS(s&Raised if we cannot import the backendcCs
||_dS(N(t	traceback(tselfR((s:/mingw64/lib/python2.7/site-packages/pep517/_in_process.pyt__init__s(t__name__t
__module__t__doc__R(((s:/mingw64/lib/python2.7/site-packages/pep517/_in_process.pyRstBackendInvalidcBseZdZd�ZRS(s Raised if the backend is invalidcCs
||_dS(N(tmessage(RR((s:/mingw64/lib/python2.7/site-packages/pep517/_in_process.pyR%s(RRR	R(((s:/mingw64/lib/python2.7/site-packages/pep517/_in_process.pyR
#stHookMissingcBseZdZRS(sARaised if a hook is missing and we are not executing the fallback(RRR	(((s:/mingw64/lib/python2.7/site-packages/pep517/_in_process.pyR)scCsXtjjtjj|��}tjjtjj|��}tjj||g�|kS(s5Test if a file is located within the given directory.(tostpathtnormcasetabspathtcommonprefix(tfilenamet	directory((s:/mingw64/lib/python2.7/site-packages/pep517/_in_process.pytcontained_in-scs�tjjd�}|r:|jtj�}|tjd*ntjd}|jd�\}}}yt|��Wn#t	k
r�t
tj���nX|r�t
�fd�|D��s�td��q�n|r�x)|jd�D]}t�|��q�Wn�S(sFind and load the build backendtPEP517_BACKEND_PATHitPEP517_BUILD_BACKENDt:c3s!|]}t�j|�VqdS(N(Rt__file__(t.0R(tobj(s:/mingw64/lib/python2.7/site-packages/pep517/_in_process.pys	<genexpr>Ess(Backend was not loaded from backend-patht.(R
tenvirontgettsplittpathseptsysRt	partitionRtImportErrorRRt
format_exctanyR
tgetattr(tbackend_pathtextra_pathitemsteptmod_patht_tobj_patht	path_part((Rs:/mingw64/lib/python2.7/site-packages/pep517/_in_process.pyt_build_backend4s&


cCs9t�}y
|j}Wntk
r*gSX||�SdS(sfInvoke the optional get_requires_for_build_wheel hook

    Returns [] if the hook is not defined.
    N(R-tget_requires_for_build_wheeltAttributeError(tconfig_settingstbackendthook((s:/mingw64/lib/python2.7/site-packages/pep517/_in_process.pyR.Ps	

cCsZt�}y
|j}Wn0tk
rH|s8t��nt|||�SX|||�SdS(s�Invoke optional prepare_metadata_for_build_wheel

    Implements a fallback by building a wheel if the hook isn't defined,
    unless _allow_fallback is False in which case HookMissing is raised.
    N(R-t prepare_metadata_for_build_wheelR/Rt_get_wheel_metadata_from_wheel(tmetadata_directoryR0t_allow_fallbackR1R2((s:/mingw64/lib/python2.7/site-packages/pep517/_in_process.pyR3^s	

	tPEP517_ALREADY_BUILT_WHEELcCs_g}x<|j�D].}tjd|�}|r|j|�qqW|rO|Std��dS(s6Identify the .dist-info folder inside a wheel ZipFile.s[^/\\]+-[^/\\]+\.dist-info/s#No .dist-info folder found in wheelN(tnamelisttretmatchtappendt	Exception(twhl_ziptresRtm((s:/mingw64/lib/python2.7/site-packages/pep517/_in_process.pyt_dist_info_filestsc
Cs�ddlm}|j||�}ttjj|t�d��WdQXtjj||�}||��)}t|�}|j	d|d|�WdQX|dj
d�dS(	s�Build a wheel and extract the metadata from it.

    Fallback for when the build backend does not
    define the 'get_wheel_metadata' hook.
    i����(tZipFiletwbNRtmembersit/(tzipfileRAtbuild_wheeltopenR
RRtWHEEL_BUILT_MARKERR@t
extractallR(R1R5R0RAtwhl_basenametwhl_filetzipft	dist_info((s:/mingw64/lib/python2.7/site-packages/pep517/_in_process.pyR4�scCs�|s
dStjj|�}tjjt|t��s;dSttjj|d��}|sedGHdSt	|�dkr�dGHdS|dS(sHCheck for a wheel already built during the get_wheel_metadata hook.
    s*.whls+Found wheel built marker, but no .whl filesisHFound multiple .whl files; unspecified behaviour. Will call build_wheel.iN(
tNoneR
RtdirnametisfiletpjoinRHRRtlen(R5tmetadata_parentt	whl_files((s:/mingw64/lib/python2.7/site-packages/pep517/_in_process.pyt_find_already_built_wheel�scCsHt|�}|r2tj||�tjj|�St�j|||�S(s�Invoke the mandatory build_wheel hook.

    If a wheel was already built in the
    prepare_metadata_for_build_wheel fallback, this
    will copy it rather than rebuilding the wheel.
    (RUtshutiltcopy2R
RtbasenameR-RF(twheel_directoryR0R5tprebuilt_whl((s:/mingw64/lib/python2.7/site-packages/pep517/_in_process.pyRF�scCs9t�}y
|j}Wntk
r*gSX||�SdS(sfInvoke the optional get_requires_for_build_wheel hook

    Returns [] if the hook is not defined.
    N(R-tget_requires_for_build_sdistR/(R0R1R2((s:/mingw64/lib/python2.7/site-packages/pep517/_in_process.pyR[�s	

t_DummyExceptioncBseZdZRS(s(Nothing should ever raise this exception(RRR	(((s:/mingw64/lib/python2.7/site-packages/pep517/_in_process.pyR\�stGotUnsupportedOperationcBseZdZd�ZRS(s9For internal use when backend raises UnsupportedOperationcCs
||_dS(N(R(RR((s:/mingw64/lib/python2.7/site-packages/pep517/_in_process.pyR�s(RRR	R(((s:/mingw64/lib/python2.7/site-packages/pep517/_in_process.pyR]�scCsSt�}y|j||�SWn/t|dt�k
rNttj���nXdS(s&Invoke the mandatory build_sdist hook.tUnsupportedOperationN(R-tbuild_sdistR%R\R]RR#(tsdist_directoryR0R1((s:/mingw64/lib/python2.7/site-packages/pep517/_in_process.pyR_�s
	R.R3RFR[R_cCslttj�dkr%tjd�ntjd}tjd}|tkr_tjd|�nt�|}tjt|d��}it	d6dd6}y||d	�|d<Wn�tk
r�}t|d
<|j
|d<nmtk
r}t|d<|j|d
<nDtk
r.}t|d<|j
|d<ntk
rHt|d<nXtj|t|d�dd�dS(Nis"Needs args: hook_name, control_diriisUnknown hook: %ss
input.jsontunsupportedt
return_valtkwargst
no_backendRtbackend_invalidt
backend_errorthook_missingsoutput.jsontindent(RRR targvtexitt
HOOK_NAMEStglobalstcompatt	read_jsonRQtFalseRNRtTrueRR
RR]Rt
write_json(t	hook_nametcontrol_dirR2t
hook_inputtjson_outte((s:/mingw64/lib/python2.7/site-packages/pep517/_in_process.pytmain�s.






t__main__("R	Rt	importlibRR
tos.pathRRQR9RVR RRmR<RR
RRR-R.R3RHR@R4RURNRFR[R\R]R_RkRwR(((s:/mingw64/lib/python2.7/site-packages/pep517/_in_process.pyt<module>sD