ó 2ÄČ[c@`sŚddlmZmZmZddlmZmZddlZddlZddl Z ddl m Z ddl m Z defd„ƒYZdefd „ƒYZdS( i(tdivisiontabsolute_importtprint_function(tPIPEtPopenN(t lapack_lite(tassert_tFindDependenciesLddcB`s#eZd„Zd„Zd„ZRS(cC`shdg|_y1t|jdtdtƒ}|jƒ\}}Wn$tk rctd|jƒ‚nXdS(Ntlddtstdouttstderrscommand %s cannot be run(tcmdRRt communicatetOSErrort RuntimeError(tselftpR R ((s</tmp/pip-build-fiC0ax/numpy/numpy/linalg/tests/test_build.pyt__init__s   cC`sZt|j|gdtdtƒ}|jƒ\}}|jdksVtd|ƒ‚n|S(NR R is failed dependencies check for %s(RR RR t returncodeR(RtlfileRR R ((s</tmp/pip-build-fiC0ax/numpy/numpy/linalg/tests/test_build.pytget_dependenciess "c C`sš|j|ƒ}tg|D]}|tj|ƒf^qƒ}g}xP|jƒD]B}x9|jƒD]+\}} | j|ƒrc|j|ƒqcqcWqPW|S(N(Rtdicttretcompilet splitlinestitemstsearchtappend( RRtdepsR tdeptrdepstfoundstltktv((s</tmp/pip-build-fiC0ax/numpy/numpy/linalg/tests/test_build.pytgrep_dependenciess.(t__name__t __module__RRR#(((s</tmp/pip-build-fiC0ax/numpy/numpy/linalg/tests/test_build.pyR s tTestF77MismatchcB`s7eZejjejd dk ddƒd„ƒZRS(itlinuxtreasons)no fortran compiler on non-Linux platformcC`sAtƒ}|jtjddgƒ}tt|ƒdkdƒdS(Ntlibg2ct libgfortranisœ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__Rtlen(RtfR((s</tmp/pip-build-fiC0ax/numpy/numpy/linalg/tests/test_build.pyt test_lapack.s   (R$R%tpytesttmarktskipiftsystplatformR.(((s</tmp/pip-build-fiC0ax/numpy/numpy/linalg/tests/test_build.pyR&,s(t __future__RRRt subprocessRRR2RR/t numpy.linalgRt numpy.testingRtobjectRR&(((s</tmp/pip-build-fiC0ax/numpy/numpy/linalg/tests/test_build.pyts