472,328 Members | 1,136 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,328 software developers and data experts.

Build Python, Numpy and Scipy source with Visual Studio 6.0 forwindows

Hello All

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 the source code and directories
are not all obvious. Looks like these are normally built via other
compilers. However I need to do all my builds in VS 6.0.

For Numpy (I haven't got as far as Scipy yet) 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).
I created the auto-generated files using the python scripts. Then I
included the headers where necessary.

However the remaining problems are:
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 a snapshot of where I am this morning. What I'm really
after is some advice from anybody who has done similar. I'd really
appreciate hearing from you.

Thanks for your help and very happy to have joined this group
Richard
Sep 16 '08 #1
4 2004
En Tue, 16 Sep 2008 06:25:27 -0300, <Ri***************@xyratex.com>
escribió:
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 the source code and directories
are not all obvious. Looks like these are normally built via other
compilers. However I need to do all my builds in VS 6.0.

For Numpy (I haven't got as far as Scipy yet) I've organised the
source code into the following projects and lumped them all into my
new workspace numpy.dsw:
Don't try to roll your own projects, compile it using distutils instead.
Distutils takes care of defining the right symbols and compiler options,
and should detect VS.
I'm pretty sure the Numpy README file (or similar) describes how to build
it; usually you install the required dependencies and then run:
python setup.py build

--
Gabriel Genellina

Sep 16 '08 #2
On Sep 16, 11:02*am, "Gabriel Genellina" <gagsl-...@yahoo.com.ar>
wrote:
En Tue, 16 Sep 2008 06:25:27 -0300, <Richard_Martin...@xyratex.com*
escribió:
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 the source code and directories
are not all obvious. Looks like these are normally built via other
compilers. However I need to do all my builds in VS 6.0.
For Numpy (I haven't got as far as Scipy yet) I've organised the
source code into the following projects and lumped them all into my
new workspace numpy.dsw:

Don't try to roll your own projects, compile it using distutils instead. *
Distutils takes care of defining the right symbols and compiler options, *
and should detect VS.
I'm pretty sure the Numpy README file (or similar) describes how to build*
it; usually you install the required dependencies and then run:
python setup.py build

--
Gabriel Genellina
Thanks for your message.

Unfortunately I need as much control and visibility as possible as I
eventually want to port from windows os to pharlap rtos.

I appreciate your advice and I understand it's not a great idea to
roll your own, but if it's possible, I really need to do so.

Any further help/advice greatly appreciated
Richard
Sep 16 '08 #3
Ri***************@xyratex.com wrote:
Now comes the troubled bit...I now look for similar source code for
Python extensions Numpy and Scipy but the source code and directories
are not all obvious. Looks like these are normally built via other
compilers. However I need to do all my builds in VS 6.0.
Numpy/scipy specific questions tend to get more specific answers on the
numpy/scipy mailing lists. Or see gmane.comp.python.numeric.general at
news.gmane.org

Sep 16 '08 #4
On Sep 16, 7:03*pm, Terry Reedy <tjre...@udel.eduwrote:
Richard_Martin...@xyratex.com wrote:
Now comes the troubled bit...I now look for similar source code for
Python extensions Numpy and Scipy but the source code and directories
are not all obvious. Looks like these are normally built via other
compilers. However I need to do all my builds in VS 6.0.

Numpy/scipy specific questions tend to get more specific answers on the
numpy/scipy mailing lists. *Or see gmane.comp.python.numeric.general at
news.gmane.org
Thanks very much for your advice Terry. I've just signed up with Numpy
discussion and Scipy dev. Just taking a look at gmane now!

Richard
Sep 17 '08 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Ray Tomes | last post by:
Hi Folks I am an old codger who has much experience with computers in the distant past before all this object oriented stuff. Also I have loads...
3
by: Thomas Nelson | last post by:
Sorry if this is a FAQ, but I couldn't find a good summary through google. What kinds of statistical analysis tools exist in python? I really...
3
by: sam | last post by:
hello all, i am currently in the process of planning a piece of software to model polymerisation kinetics, and intend to use python for all the...
2
by: Christian | last post by:
Hi, I'm having problems with python 2.4.4 built on a Celeron D. I had problems earlier with that processor which I think has understands some 64...
9
by: W. Watson | last post by:
I would hope Python is doing a lot of standard computations beyond arithmetic. Trig functions and more. Comments? -- Wayne Watson (Nevada City,...
53
by: Vicent Giner | last post by:
Hello. I am new to Python. It seems a very interesting language to me. Its simplicity is very attractive. However, it is usually said that...
3
by: chapagainanish | last post by:
Hi!! I'm having installation problem for installing numpy and scipy in Cygwin for Python, and am obstruct in madway for project, i followed...
30
by: Ivan Reborin | last post by:
Hello everyone, I was wondering if anyone here has a moment of time to help me with 2 things that have been bugging me. 1. Multi dimensional...
3
by: luca.ciciriello | last post by:
Hi all. I've installed on may MacOS X 10.4.11 (PPC) Python-2.5.2, numpy and scipy. Now I'm interested to insall Python-2.6. My question is: What...
0
by: tammygombez | last post by:
Hey everyone! I've been researching gaming laptops lately, and I must say, they can get pretty expensive. However, I've come across some great...
0
by: concettolabs | last post by:
In today's business world, businesses are increasingly turning to PowerApps to develop custom business applications. PowerApps is a powerful tool...
0
by: teenabhardwaj | last post by:
How would one discover a valid source for learning news, comfort, and help for engineering designs? Covering through piles of books takes a lot of...
0
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
0
jalbright99669
by: jalbright99669 | last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was...
0
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. ...
1
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.