Ńņ \ŠKc @s“ddklZlZlZddkZddkZddkZddkl Z ddk l Z l Z dd d„ƒYZ de fd„ƒYZdS( i’’’’(tcalltPIPEtPopenN(t lapack_lite(tTestCasetdectFindDependenciesLddcBs#eZd„Zd„Zd„ZRS(c CsXdg|_yt|idtdtƒ}Wn&tj otd|iƒ‚nXdS(Ntlddtstdouttstderrscommand %s cannot be run(tcmdRRtOSErrort RuntimeError(tselftst((sC/usr/lib64/python2.6/site-packages/numpy/linalg/tests/test_build.pyt__init__ s  cCs\t|i|gdtdtƒ}|iƒ\}}|idjptdtƒ‚n|S(NRR is#Failed to check dependencies for %s(RR Rt communicatet returncodeR tlibfile(R tfiletpRR ((sC/usr/lib64/python2.6/site-packages/numpy/linalg/tests/test_build.pytget_dependenciess "c Cs¤|i|ƒ}tg}|D]}||ti|ƒfq~ƒ}g}xR|iƒD]D}x;|iƒD]-\} } | i|ƒo|i| ƒqkqkWqXW|S(N(Rtdicttretcompilet splitlinestitemstsearchtappend( R RtdepsRt_[1]tdeptrdepstfoundstltktv((sC/usr/lib64/python2.6/site-packages/numpy/linalg/tests/test_build.pytgrep_dependenciess6  (t__name__t __module__RRR%(((sC/usr/lib64/python2.6/site-packages/numpy/linalg/tests/test_build.pyR s  tTestF77MismatchcBs1eZeieid dj dƒd„ƒZRS(itlinuxs8Skipping fortran compiler mismatch on non Linux platformcCsDtƒ}|itiddgƒ}|it|ƒdjdƒ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__tfailIftlen(R tfR((sC/usr/lib64/python2.6/site-packages/numpy/linalg/tests/test_build.pyt test_lapack's   (R&R'RtskipiftsystplatformR0(((sC/usr/lib64/python2.6/site-packages/numpy/linalg/tests/test_build.pyR(&s((t subprocessRRRR2Rtnumpytnpt numpy.linalgRt numpy.testingRRRR((((sC/usr/lib64/python2.6/site-packages/numpy/linalg/tests/test_build.pyts