Numpy-vendor vcvarsall.bat problem.

Anyone know how to fix this? I've run into it before and never got it figured out. [192.168.121.189:22] out: File "C:\Python34\lib\distutils\msvc9compiler.py", line 259, in query_vcvarsall [192.168.121.189:22] out: [192.168.121.189:22] out: raise DistutilsPlatformError("Unable to find vcvarsall.bat") [192.168.121.189:22] out: [192.168.121.189:22] out: distutils.errors.DistutilsPlatformError: Unable to find vcvarsall.bat Chuck

On Fri, Aug 7, 2015 at 2:33 AM, David Cournapeau <cournape@gmail.com> wrote:
FWIW, the incantation that works for me to compile numpy on Windows with mingw is: python setup.py config --compiler=mingw32 build --compiler=mingw32 install but I am not sure I have ever tried it with Python 3. I think my source for this was: http://nipy.sourceforge.net/nipy/devel/devel/install/windows_scipy_build.htm... Jaime
-- (\__/) ( O.o) ( > <) Este es Conejo. Copia a Conejo en tu firma y ayúdale en sus planes de dominación mundial.

On Fri, Aug 7, 2015 at 3:33 AM, David Cournapeau <cournape@gmail.com> wrote:
I'm running numpy-vendor which is running wine inside ubuntu inside a vm. The relevant commands are run("rm -rf ../local") run("paver sdist") run("python setup.py install --prefix ../local") run("paver pdf") run("paver bdist_superpack -p 3.4") run("paver bdist_superpack -p 3.3") run("paver bdist_superpack -p 2.7") run("paver write_release_and_log") run("paver bdist_wininst_simple -p 2.7") run("paver bdist_wininst_simple -p 3.3") run("paver bdist_wininst_simple -p 3.4") Which don't look suspicious. I think we may have changed something in numpy/distutils, possibly as part of https://github.com/numpy/numpy/pull/6152 Chuck

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

On Fri, Aug 7, 2015 at 9:36 AM, Charles R Harris <charlesr.harris@gmail.com> wrote:
See #6175 <https://github.com/numpy/numpy/pull/6175> . Chuck
participants (3)
-
Charles R Harris
-
David Cournapeau
-
Jaime Fernández del Río