[Numpy-discussion] can't build numpy 1.2.0 under python 2.6 (windows-amd64) using VS9

David Cournapeau david@ar.media.kyoto-u.ac...
Wed Oct 8 02:39:32 CDT 2008


Paul Lucek wrote:
>
> I get the following errors in umathmodule.c.src:
>
>  
>
> D:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\amd64\cl.exe
> /c /nolog
>
> o /Ox /MD /W3 /GS- /DNDEBUG -Ibuild\src.win-amd64-2.6\numpy\core\src
> -Inumpy\cor
>
> e\include -Ibuild\src.win-amd64-2.6\numpy\core\include/numpy
> -Inumpy\core\src -I
>
> numpy\core\include -Id:\python26\include -Id:\python26\PC
> /Tcbuild\src.win-amd64
>
> -2.6\numpy\core\src\umathmodule.c
> /Fobuild\temp.win-amd64-2.6\Release\build\src.
>
> win-amd64-2.6\numpy\core\src\umathmodule.obj
>
> umathmodule.c
>
> numpy\core\src\umathmodule.c.src(64) : error C2059: syntax error : 'type'
>
> numpy\core\src\umathmodule.c.src(70) : error C2059: syntax error : 'type'
>
> numpy\core\src\ufuncobject.c(1701) : warning C4244: '=' : conversion
> from 'npy_i
>
> ntp' to 'int', possible loss of data
>
> numpy\core\src\ufuncobject.c(2422) : warning C4244: '=' : conversion
> from 'npy_i
>
> ntp' to 'int', possible loss of data
>
> error: Command "D:\Program Files (x86)\Microsoft Visual Studio
> 9.0\VC\BIN\amd64\
>
> cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG
> -Ibuild\src.win-amd64-2.6\numpy\core
>
> \src -Inumpy\core\include
> -Ibuild\src.win-amd64-2.6\numpy\core\include/numpy -In
>
> umpy\core\src -Inumpy\core\include -Id:\python26\include
> -Id:\python26\PC /Tcbui
>
> ld\src.win-amd64-2.6\numpy\core\src\umathmodule.c
> /Fobuild\temp.win-amd64-2.6\Re
>
> lease\build\src.win-amd64-2.6\numpy\core\src\umathmodule.obj" failed
> with exit s
>
> tatus 2
>
>  
>

Note that 1.2.0 does not officially support python 2.6, specially on
windows. Because python 2.6 uses a new toolchain (VS 2008 by default
instead of 2003), it requires some non trivial changes. I hope that all
those changes will be in place for numpy 1.3,

cheers,

David


More information about the Numpy-discussion mailing list