Mini Kabibi Habibi

Current Path : C:/Users/ITO/AppData/Local/Programs/GIMP 2/lib/python2.7/distutils/
Upload File :
Current File : C:/Users/ITO/AppData/Local/Programs/GIMP 2/lib/python2.7/distutils/cygwinccompiler.pyo

�
Ŕ�dc@s�dZdZddlZddlZddlZddlmZmZddlm	Z	ddl
mZddlm
Z
mZmZddlmZd	�Zd
e	fd��YZdefd
��YZdZdZdZd�Zd�Zd�ZdS(sdistutils.cygwinccompiler

Provides the CygwinCCompiler class, a subclass of UnixCCompiler that
handles the Cygwin port of the GNU C compiler to Windows.  It also contains
the Mingw32CCompiler class which handles the mingw32 port of GCC (same as
cygwin in no-cygwin mode).
s$Id$i����N(tgen_preprocess_optionstgen_lib_options(t
UnixCCompiler(t
write_file(tDistutilsExecErrortCompileErrortUnknownFileError(tlogcCs�tjjd�}|dkr�tj|d|d!}|dkrIdgS|dkr\dgS|d	krod
gS|dkr�dgStd
|��ndS(saInclude the appropriate MSVC runtime library if Python was built
    with MSVC 7.0 or later.
    sMSC v.i����ii
t1300tmsvcr70t1310tmsvcr71t1400tmsvcr80t1500tmsvcr90sUnknown MS Compiler version %s N(tsystversiontfindt
ValueError(tmsc_postmsc_ver((s>D:/a/msys64/mingw64/lib/python2.7/distutils/cygwinccompiler.pyt	get_msvcr;stCygwinCCompilercBs�eZdZdZdZdZdZdZdZdZ	dddd	�Z
d
�Zddddddddddd�
Z
ddd
�ZRS(tcygwins.os.as.dlls.dll.aslib%s%ss%s%ss.exeic
CsStj||||�t�\}}|jd||f�|tk	r\|jd|�nt�\|_|_|_	|j|j
d|j|j|j	f�|jdkr�d|_n	d|_|jdkr�d}nd	}|jd
ddd
dddddd|j|f�|jdkrCdg|_
|jd�nt�|_
dS(Ns%Python's GCC status: %s (details: %s)s�Python's pyconfig.h doesn't seem to support your compiler. Reason: %s. Compiling may fail because of undefined preprocessor macros.s: gcc %s, ld %s, dllwrap %s
s2.10.90tgcctdllwraps2.13s-shareds
-mdll -statictcompilersgcc -mcygwin -O -Walltcompiler_sosgcc -mcygwin -mdll -O -Walltcompiler_cxxsg++ -mcygwin -O -Wallt
linker_exesgcc -mcygwint	linker_sos%s -mcygwin %ss2.91.57tmsvcrts,Consider upgrading to a newer version of gcc(Rt__init__tcheck_config_htdebug_printtCONFIG_H_OKtwarntget_versionstgcc_versiont
ld_versiontdllwrap_versiont
compiler_typet
linker_dlltset_executablest
dll_librariesR(tselftverbosetdry_runtforcetstatustdetailst
shared_option((s>D:/a/msys64/mingw64/lib/python2.7/distutils/cygwinccompiler.pyR!]s<			
c
Cs|dks|dkrZy |jdd|d|g�Wq{tk
rV}t|�q{Xn!|dkr3tjj|�}tjj|�}	y�|jdgd|d	|	g|g�tjjtjj|��\}
}tjj|	|
d�}|jdd|d|g�Wq{tk
r/}t|��q{XnHy)|j|j	||d|g|�Wntk
rz}t|�nXdS(
Ns.rcs.restwindress-is-os.mctwindmcs-hs-r(
tspawnRRtostpathtdirnametsplitexttbasenametjoinR(
R.tobjtsrctexttcc_argstextra_postargstpp_optstmsgth_dirtrc_dirtbaset_trc_file((s>D:/a/msys64/mingw64/lib/python2.7/distutils/cygwinccompiler.pyt_compile�s( '$ cCs�tj|
pg�}
tj|p$g�}tj|p9g�}|j|j�|dk	r�||jksy|jdkr�tjj|d�}tjj	tjj
|��\}}tjj||d�}tjj|d|d�}dtjj
|�dg}x|D]}|j|�qW|j
t||fd|�|jd	krx|
jd
|g�|
jd|g�q�|j|�n|	s�|
jd�ntj||||||||d|	|
|||
�dS(
NRis.deftlibs.as
LIBRARY %stEXPORTSs
writing %sRs--output-libs--defs-s(tcopytextendR-tNonet
EXECUTABLER+R8R9R:R;R<R=tappendtexecuteRRtlink(R.ttarget_desctobjectstoutput_filenamet
output_dirt	librariestlibrary_dirstruntime_library_dirstexport_symbolstdebugt
extra_preargsRBt
build_tempttarget_langttemp_dirtdll_namet
dll_extensiontdef_filetlib_filetcontentstsym((s>D:/a/msys64/mingw64/lib/python2.7/distutils/cygwinccompiler.pyRS�sJ			
	tc	CsM|dkrd}ng}x+|D]#}tjj|�\}}tjj|�}|dkrg|}n||jdddgkr�td||f�ntjj|�d}|tjj|�}|r�tjj	|�}n|dks�|dkr"|j
tjj||||j��q"|j
tjj|||j��q"W|S(NRgs.rcs.ress.mcs"unknown file type '%s' (from '%s')i(s.rcs.res(
ROR8R9R;tnormcasetsrc_extensionsRt
splitdrivetisabsR<RQR=t
obj_extension(	R.tsource_filenamest	strip_dirRWt	obj_namestsrc_nameRGR@text_normcase((s>D:/a/msys64/mingw64/lib/python2.7/distutils/cygwinccompiler.pytobject_filenames"s,	
	N(t__name__t
__module__R*Rltstatic_lib_extensiontshared_lib_extensiontdylib_lib_extensiontstatic_lib_formattshared_lib_formatt
exe_extensionR!RJRORSRr(((s>D:/a/msys64/mingw64/lib/python2.7/distutils/cygwinccompiler.pyRRs,>	(XtMingw32CCompilercBs eZdZdddd�ZRS(tmingw32icCs�tj||||�|jdkr.d}nd}|jdkrLd}nd}|jdksjt�rsd}nd}|jd	d
|dd|d
d|dd|dd|j|||f�g|_t�p�g|_dS(Ns2.13s-shareds
-mdll -statics2.91.57s--entry _DllMain@12Rgt4s -mno-cygwinRsgcc%s -O2 -WallRsgcc%s -mdll -O2 -WallRsg++%s -O2 -WallRsgcc%sRs
%s%s %s %s(	RR!R(R'tis_cygwingccR,R+R-R(R.R/R0R1R4tentry_pointt	no_cygwin((s>D:/a/msys64/mingw64/lib/python2.7/distutils/cygwinccompiler.pyR!Is&			


		(RsRtR*R!(((s>D:/a/msys64/mingw64/lib/python2.7/distutils/cygwinccompiler.pyR{Estoksnot okt	uncertaincCs�ddlm}ddl}|jtjd�dkrAtdfS|j�}y.t|�}z|j	�}Wd|j
�XWn'tk
r�}td||j
ffSX|j|d�dkr�td	|fStd
|fSdS(s�Check if the current Python installation (specifically, pyconfig.h)
    appears amenable to building extensions with GCC.  Returns a tuple
    (status, details), where 'status' is one of the following constants:
      CONFIG_H_OK
        all is well, go ahead and compile
      CONFIG_H_NOTOK
        doesn't look good
      CONFIG_H_UNCERTAIN
        not sure -- unable to read pyconfig.h
    'details' is a human-readable string explaining the situation.

    Note there are two ways to conclude "OK": either 'sys.version' contains
    the string "GCC" (implying that this Python was built with GCC), or the
    installed "pyconfig.h" contains the string "__GNUC__".
    i����(t	sysconfigNtGCCissys.version mentions 'GCC'scouldn't read '%s': %st__GNUC__s'%s' mentions '__GNUC__'s '%s' does not mention '__GNUC__'(t	distutilsR�tstringRRRR$tget_config_h_filenametopentreadtclosetIOErrortCONFIG_H_UNCERTAINtstrerrortCONFIG_H_NOTOK(R�R�tfntftstexc((s>D:/a/msys64/mingw64/lib/python2.7/distutils/cygwinccompiler.pyR"�s 
cCs%ddlm}ddlm}ddl}tjjd�pG|d�}tjjd�pe|d�}|rtj|d	d
�}|j	�}|j
�|jd|�}|r�||jd��}nd}tj|d
d
�}|j	�jd�j�d}|j
�nd}|r�tj|dd
�}|j	�}|j
�|jd|�}|rz||jd��}	q�d}	nd}	tjjd�p�|d�}
|
rtj|
dd
�}|j	�}|j
�|jd|�}|r	||jd��}qd}nd}||	|fS(sj Try to find out the versions of gcc, ld and dllwrap.
        If not possible it returns None for it.
    i����(tLooseVersion(tfind_executableNtCCRtLDtlds
 -dumpversiontrs(\d+\.\d+(\.\d+)*)is --print-prog-name ldtasciiis -vtDLLWRAPRs
 --versions (\d+\.\d+(\.\d+)*)(tdistutils.versionR�tdistutils.spawnR�treR8tenvirontgettpopenR�R�tsearchtgroupROtdecodetsplit(R�R�R�tgcc_exetld_exetoutt
out_stringtresultR'R(tdllwrap_exeR)((s>D:/a/msys64/mingw64/lib/python2.7/distutils/cygwinccompiler.pyR&�sJ


	
	cCs;tjdd�}|j�}|j�|j�jd�S(s>Try to determine if the gcc that would be used is from cygwin.sgcc -dumpmachineR�R(R8R�R�R�tstriptendswith(R�R�((s>D:/a/msys64/mingw64/lib/python2.7/distutils/cygwinccompiler.pyR~�s
(t__doc__t__revision__R8RRMtdistutils.ccompilerRRtdistutils.unixccompilerRtdistutils.file_utilRtdistutils.errorsRRRR�RRRR{R$R�R�R"R&R~(((s>D:/a/msys64/mingw64/lib/python2.7/distutils/cygwinccompiler.pyt<module>s +$	�8	5	1