[Numpy-discussion] Numpy-vendor vcvarsall.bat problem.
Charles R Harris
charlesr.harris at gmail.com
Fri Aug 7 12:17:27 EDT 2015
On Fri, Aug 7, 2015 at 9:36 AM, Charles R Harris <charlesr.harris at gmail.com>
wrote:
> 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.
>
See #6175 <https://github.com/numpy/numpy/pull/6175> .
Chuck
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20150807/f06640bf/attachment.html>
More information about the NumPy-Discussion
mailing list