[Numpy-discussion] Compiling on windows?

Todd Miller jmiller at stsci.edu
Thu Jun 24 09:52:49 CDT 2004


On Thu, 2004-06-24 at 12:40, Tim Hochberg wrote:
>  I've been using numarray 0.8 since 0.9 has some bugs that I can't 
> easily work around. Since these have been fixed in CVS, I finally 
> decided to try to download and compile a copy of numarray from CVS. 
> Unfortunately, 'python setup.py build' bombs out almost imediately:
> 
> creating build\temp.win32-2.3
> creating build\temp.win32-2.3\Release
> creating build\temp.win32-2.3\Release\Src
> C:\Program Files\Microsoft Visual Studio\VC98\BIN\cl.exe /c /nologo /Ox 
> /MD /W3 /GX /DNDEBUG -IInclude/numarray -IC:\python23\include 
> -IC:\python23\PC /TcSrc\_convmodule.c 
> /Fobuild\temp.win32-2.3\Release\Src\_convmodule.obj_convmodule.c
> Src\_convmodule.c(683) : warning C4244: '=' : conversion from 'int ' to 
> 'float ', possible loss of data
> 
> ....
> 
> Src\_convmodule.c(2310) : error C2520: conversion from unsigned __int64 
> to double not implemented, use signed __int64
> error: command '"C:\Program Files\Microsoft Visual 
> Studio\VC98\BIN\cl.exe"' failed with exit status 2
> 
> 
> This on Windows XP, Python 2.3.2, VC++ 6.0. Any hints as to what I could 
> to make this work? 

Try:  

python setup.py install --gencode

Then try:

python setup.py build ...

if you must.  :-)

> I downloaded the source for version 0.9 and tried 
> compiling it but got the same set of errors.
> 
> Alternatively, is there going to be a 0.9.1 or 0.10 release soon?

numarray-1.0 should be out soon.


Regards,
Todd






More information about the Numpy-discussion mailing list