So the problem comes from the has_cblas function
def has_cblas(self):
# primitive cblas check by looking for the header
res = False
c = distutils.ccompiler.new_compiler()
tmpdir = tempfile.mkdtemp()
s = """#include """
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
The problem is the test compile, which does not use the mingw compiler, but
falls back to the compiler found in python distutils. Not sure what the fix
is.
Chuck