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

�
���]c@s�dZddlZddlZddlZddlZddlmZddlZddlm	Z	ddl
mZddlm
Z
mZeje�Zd�Zd	efd
��YZdd�Zdd�ZdS(
sIBuild wheels/sdists by installing build deps to a temporary environment.
i����N(t
check_call(t	get_paths(tmkdtempi(tPep517HookCallert
LoggerWrappercCs[ttjj|d���}tj|�}WdQX|d}|d|d|jd�fS(Nspyproject.tomlsbuild-systemtrequiress
build-backendsbackend-path(topentostpathtjointtomltloadtget(t
source_dirtftpyproject_datatbuildsys((s7/mingw64/lib/python2.7/site-packages/pep517/envbuild.pyt_load_pyprojects
tBuildEnvironmentcBs;eZdZdZed�Zd�Zd�Zd�Z	RS(s�Context manager to install build deps in a simple temporary environment

    Based on code I wrote for pip, which is MIT licensed.
    cCs
||_dS(N(t_cleanup(tselftcleanup((s7/mingw64/lib/python2.7/site-packages/pep517/envbuild.pyt__init__9scCsTtdd�|_tjd|j�tjjdd�|_tjjdd�|_	tj
dkrjdnd}t|di|jd	6|jd
6�}|d}|jr�|tj|jtjd<n|tjtj
tjd<|d|d
kr|d}n|dtj|d
}|j	rC|tj|j	tjd<n
|tjd<|S(Ntprefixspep517-build-env-sTemporary build environment: %stPATHt
PYTHONPATHtnttposix_prefixtvarstbasetplatbasetscriptstpurelibtplatlib(RRtlogtinfoRtenvironRtNonet	save_pathtsave_pythonpathtnameRtpathseptdefpath(Rtinstall_schemetinstall_dirsRtlib_dirs((s7/mingw64/lib/python2.7/site-packages/pep517/envbuild.pyt	__enter__<s*

	
	

cCsw|s
dStjd|�tjddddd|jgt|�}t|dtttj	�d	tttj
��dS(
sAInstall dependencies into this env by calling pip in a subprocessNsCalling pip to install %ss-mtpiptinstalls--ignore-installeds--prefixtstdouttstderr(R"R#tsyst
executableRtlistRRtloggingtINFOtERROR(Rtreqstcmd((s7/mingw64/lib/python2.7/site-packages/pep517/envbuild.pytpip_install\scCs�|jo*|jdk	o*tjj|j�}|rFtj|j�n|jdkrktjj	dd�n|jtjd<|j
dkr�tjj	dd�n|j
tjd<dS(NRR(RRR%RtisdirtshutiltrmtreeR&R$tpopR'(Rtexc_typetexc_valtexc_tbt
needs_cleanup((s7/mingw64/lib/python2.7/site-packages/pep517/envbuild.pyt__exit__js	N(
t__name__t
__module__t__doc__R%RtTrueRR.R;RD(((s7/mingw64/lib/python2.7/site-packages/pep517/envbuild.pyRs	 	c	Cs�|dkri}nt|�\}}}t|||�}t��@}|j|�|j|�}|j|�|j||�SWdQXdS(smBuild a wheel from a source directory using PEP 517 hooks.

    :param str source_dir: Source directory containing pyproject.toml
    :param str wheel_dir: Target directory to create wheel in
    :param dict config_settings: Options to pass to build backend

    This is a blocking function which will run pip in a subprocess to install
    build requirements.
    N(R%RRRR;tget_requires_for_build_wheeltbuild_wheel(	R
t	wheel_dirtconfig_settingsRtbackendtbackend_paththookstenvR9((s7/mingw64/lib/python2.7/site-packages/pep517/envbuild.pyRJ~s
	

c	Cs�|dkri}nt|�\}}}t|||�}t��@}|j|�|j|�}|j|�|j||�SWdQXdS(smBuild an sdist from a source directory using PEP 517 hooks.

    :param str source_dir: Source directory containing pyproject.toml
    :param str sdist_dir: Target directory to place sdist in
    :param dict config_settings: Options to pass to build backend

    This is a blocking function which will run pip in a subprocess to install
    build requirements.
    N(R%RRRR;tget_requires_for_build_sdisttbuild_sdist(	R
t	sdist_dirRLRRMRNRORPR9((s7/mingw64/lib/python2.7/site-packages/pep517/envbuild.pyRR�s
	

(RGRR6R
R=t
subprocessRR3t	sysconfigRttempfileRtwrappersRRt	getLoggerRER"RtobjectRR%RJRR(((s7/mingw64/lib/python2.7/site-packages/pep517/envbuild.pyt<module>s	a