Current File : //usr/lib64/python2.7/site-packages/numpy/linalg/tests/test_build.pyc
�
E�`Qc@s�ddlmZmZmZddlZddlZddlZddlm	Z	ddl
mZmZddl
mZdefd��YZdefd	��YZdS(
i����(tcalltPIPEtPopenN(tlapack_lite(tTestCasetdec(tasbytes_nestedtFindDependenciesLddcBs#eZd�Zd�Zd�ZRS(cCshdg|_y1t|jdtdt�}|j�\}}Wn$tk
rctd|j��nXdS(Ntlddtstdouttstderrscommand %s cannot be run(tcmdRRtcommunicatetOSErrortRuntimeError(tselftpR	R
((sC/usr/lib64/python2.7/site-packages/numpy/linalg/tests/test_build.pyt__init__s
cCsZt|j|gdtdt�}|j�\}}|jdksVtdt��n|S(NR	R
is#Failed to check dependencies for %s(RRRRt
returncodeRtlibfile(RtfileRR	R
((sC/usr/lib64/python2.7/site-packages/numpy/linalg/tests/test_build.pytget_dependenciess
"c
Cs�|j|�}tg|D]}|tj|�f^q�}g}xP|j�D]B}x9|j�D]+\}}	|	j|�rc|j|�qcqcWqPW|S(N(Rtdicttretcompilet
splitlinestitemstsearchtappend(
RRtdepsR	tdeptrdepstfoundstltktv((sC/usr/lib64/python2.7/site-packages/numpy/linalg/tests/test_build.pytgrep_dependenciess.(t__name__t
__module__RRR$(((sC/usr/lib64/python2.7/site-packages/numpy/linalg/tests/test_build.pyRs			tTestF77MismatchcBs1eZejejd dkd�d��ZRS(itlinuxs8Skipping fortran compiler mismatch on non Linux platformcCsJt�}|jtjtddg��}|jt|�dkd�dS(Ntlibg2ctlibgfortranis�Both g77 and gfortran runtimes linked in lapack_lite ! This is likely to
cause random crashes and wrong results. See numpy INSTALL.txt for more
information.(RR$Rt__file__RtassertFalsetlen(RtfR((sC/usr/lib64/python2.7/site-packages/numpy/linalg/tests/test_build.pyttest_lapack*s
	(R%R&RtskipiftsystplatformR/(((sC/usr/lib64/python2.7/site-packages/numpy/linalg/tests/test_build.pyR')s(t
subprocessRRRR1Rtnumpytnptnumpy.linalgRt
numpy.testingRRtnumpy.compatRtobjectRR'(((sC/usr/lib64/python2.7/site-packages/numpy/linalg/tests/test_build.pyt<module>s