HOME


sh-3ll 1.0
DIR:/usr/local/lib64/python3.6/site-packages/numpy/linalg/tests/__pycache__/
Upload File :
Current File : //usr/local/lib64/python3.6/site-packages/numpy/linalg/tests/__pycache__/test_build.cpython-36.pyc
3

���hV�@s`ddlmZmZddlZddlZddlZddlmZddlm	Z	Gdd�d�Z
Gdd�d�ZdS)	�)�PIPE�PopenN)�lapack_lite)�assert_c@s$eZdZdd�Zdd�Zdd�ZdS)�FindDependenciesLddcCsPdg|_y t|jttd�}|j�\}}Wn"tk
rJtd|j��YnXdS)NZldd)�stdout�stderrzcommand %s cannot be run)�cmdrr�communicate�OSError�RuntimeError)�self�prr�r�>/tmp/pip-build-5_djhm0z/numpy/numpy/linalg/tests/test_build.py�__init__szFindDependenciesLdd.__init__cCs<t|j|gttd�}|j�\}}|jdks8td|��|S)N)rrrz failed dependencies check for %s)rr	rr
�
returncoder)r
�lfilerrrrrr�get_dependenciess

z$FindDependenciesLdd.get_dependenciesc	Cs`|j|�}tdd�|D��}g}x:|j�D].}x(|j�D]\}}|j|�r8|j|�q8Wq*W|S)NcSsg|]}|tj|�f�qSr)�re�compile)�.0�deprrr�
<listcomp> sz9FindDependenciesLdd.grep_dependencies.<locals>.<listcomp>)r�dict�
splitlines�items�search�append)	r
r�depsrZrdepsZfounds�l�k�vrrr�grep_dependenciess

z%FindDependenciesLdd.grep_dependenciesN)�__name__�
__module__�__qualname__rrr#rrrrr
s	rc@s4eZdZejjejdd�dkdd�dd��ZdS)�TestF77MismatchN��linuxz)no fortran compiler on non-Linux platform)�reasoncCs.t�}|jtjddg�}tt|�dkd�dS)Nslibg2cslibgfortran�z�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#r�__file__r�len)r
�frrrr�test_lapack,s

zTestF77Mismatch.test_lapack)	r$r%r&�pytest�markZskipif�sys�platformr/rrrrr'*sr')�
subprocessrrr2rr0Znumpy.linalgrZ
numpy.testingrrr'rrrr�<module>s