diff options
author | xoviat <xoviat@users.noreply.github.com> | 2017-08-06 20:14:31 -0500 |
---|---|---|
committer | Pauli Virtanen <pav@iki.fi> | 2017-09-02 16:56:45 +0300 |
commit | e75161a285f9843758047e1db7068300865734cc (patch) | |
tree | d961e0aa51c3ce7f3137d777f1dc1f8307ec7f79 /numpy/distutils | |
parent | 3cb0e8f96afdcf62d09c19d54a719ddd54f9d413 (diff) | |
download | numpy-e75161a285f9843758047e1db7068300865734cc.tar.gz |
distutils: system_info: fixup
Diffstat (limited to 'numpy/distutils')
-rw-r--r-- | numpy/distutils/system_info.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/distutils/system_info.py b/numpy/distutils/system_info.py index 65d2fdb4e..683b15daa 100644 --- a/numpy/distutils/system_info.py +++ b/numpy/distutils/system_info.py @@ -1759,12 +1759,12 @@ class openblas_info(blas_info): if c.compiler_type == "msvc" and info is None: from numpy.distutils.fcompiler import new_fcompiler f = new_fcompiler(c_compiler=c) - if f.compiler_type == 'gnu95': + if f and f.compiler_type == 'gnu95': # Try gfortran-compatible library files info = self.check_msvc_gfortran_libs(lib_dirs, openblas_libs) # Skip lapack check, we'd need build_ext to do it assume_lapack = True - else: + elif info: assume_lapack = False info['language'] = 'c' |