[Numpy-discussion] Build Numpy Source using Visual Studio 6.0
Richie
Richard_Martineau at xyratex.com
Wed Sep 17 06:03:53 EDT 2008
Hello
I wonder if anyone can advise me or has done similar to the
following?
Basically I've downloaded the Python 2.5.2 source code that builds
with Visual Studio 6.0. I've built Python for windows. This was easy
(it even came with the pcbuild.dsw workspace file). Great!
Now comes the troubled bit...I now look for similar source code for
Python extensions Numpy and Scipy but there appears to be no source
code for vs6.0 and the source that I can find is not all obvious.
Looks like these are normally built using gcc
compilers and some of the code uses variable length arrays that looks
gcc specific syntax? Not sure. However I need to do all my builds in
VS 6.0 as I eventually want to port across from windows os to PharLap
rtos.
So far I've tried building Numpy (I haven't got as far as Scipy yet)
and I've organised the
source code into the following projects and lumped them all into my
new workspace numpy.dsw:
dotblas
fft
lib
linalg
multiarray
numarray
random
scalarmath
sort
umath
I'm obviously not sure if this is correct. As you can see from above,
I've re-arranged the source code directory named core into the
following projects:
dotblas
sort
multiarray
scalarmath
umath
Unbelievably I am having some luck and nearly all the projects
compile
and link (untested though).
In addition I created the auto-generated files using the python
scripts. Then I
included the headers where needed.
However the remaining problems are:
umath (wont compile specific files are __ufunc_api.c and
__umath_generated.c )
multiarray (wont compile)
dotblas (wont link)
dotblas seems to have missing dependencies on these:
_cblas_sdot
_cblas_ddot
_cblas_cdotu_sub
_cblas_zdotu_sub
_cblas_cgemm
_cblas_zgemm
_cblas_sgemm
_cblas_dgemm
_cblas_cgemv
_cblas_zgemv
_cblas_sgemv
_cblas_dgemv
_cblas_caxpy
_cblas_saxpy
_cblas_zaxpy
_cblas_daxpy
_cblas_cdotc_sub
_cblas_zdotc_sub
Well that's snapshot of where I am today.
If anyone can offer any advice (negative or positive, I don't mind)
I'd really
appreciate hearing from you as I'm now at a loss as how to best
proceed.
Thanks for your help and very happy to have joined this group
Richie
More information about the NumPy-Discussion
mailing list