[Numpy-discussion] Numpy-vendor vcvarsall.bat problem.

Charles R Harris charlesr.harris at gmail.com
Fri Aug 7 11:36:38 EDT 2015


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 <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

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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20150807/91afdab9/attachment.html>


More information about the NumPy-Discussion mailing list