diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2015-08-17 11:28:45 -0400 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2015-08-17 11:28:45 -0400 |
commit | 530a6fdd00ac4c9a267d5b3562e6276de3f93061 (patch) | |
tree | e431e8efd2e1f71408206a2337b482edb40ec108 | |
parent | 4186b6db167507c96a27d8bdcd36cbe4dc4574a0 (diff) | |
parent | 8f20a33a37433f2494a2473cbcd968f719f6e4c9 (diff) | |
download | numpy-530a6fdd00ac4c9a267d5b3562e6276de3f93061.tar.gz |
Merge pull request #6183 from charris/remove-cblas-header-check
BLD: Remove fallback CBLAS detection looking for cblas.h.
-rw-r--r-- | numpy/distutils/system_info.py | 27 |
1 files changed, 1 insertions, 26 deletions
diff --git a/numpy/distutils/system_info.py b/numpy/distutils/system_info.py index 3459f67f2..90c053298 100644 --- a/numpy/distutils/system_info.py +++ b/numpy/distutils/system_info.py @@ -1676,38 +1676,13 @@ class blas_info(system_info): def calc_info(self): lib_dirs = self.get_lib_dirs() - blas_libs = self.get_libs('blas_libs', self._lib_names) info = self.check_libs(lib_dirs, blas_libs, []) if info is None: return - if self.has_cblas(): - info['language'] = 'c' - info['define_macros'] = [('HAVE_CBLAS', None)] - else: - info['language'] = 'f77' # XXX: is it generally true? + info['language'] = 'f77' # XXX: is it generally true? self.set_info(**info) - def has_cblas(self): - # primitive cblas check by looking for the header - res = False - c = distutils.ccompiler.new_compiler() - tmpdir = tempfile.mkdtemp() - s = """#include <cblas.h>""" - src = os.path.join(tmpdir, 'source.c') - try: - with open(src, 'wt') as f: - f.write(s) - try: - c.compile([src], output_dir=tmpdir, - include_dirs=self.get_include_dirs()) - res = True - except distutils.ccompiler.CompileError: - res = False - finally: - shutil.rmtree(tmpdir) - return res - class openblas_info(blas_info): section = 'openblas' |