anyone using Quantlib-Swig-0.9.6+ with Python 2.3?

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

anyone using Quantlib-Swig-0.9.6+ with Python 2.3?

kmanley
I have built QuantLib-SWIG 0.9.6 for Python 2.6 using the Visual Studio 2008 compiler and everything works great.

Now I need to access QuantLib from within Sungard Front Arena 2.2 which forces the use of Python 2.3

Python C extensions have to be built with the same compiler used to built Python itself so I need to be able to build QuantLib with a compiler compatible with Python 2.3. I know that Visual C++ 6.0 was used for Python 2.3, and I also know that Visual C++ 6.0 can't be used to build QuantLib 0.9.6 (fair enough--it's an ancient compiler)

I've seen some references on the web to the fact that mingw32 can be used to build Python 2.3 C extensions. So my question is has anyone ever built QuantLib-SWIG 0.9.6+ using mingw32? If so can you please tell me exactly the steps you took to do so.

Thanks for any help!

Kevin

Reply | Threaded
Open this post in threaded view
|

Re: anyone using Quantlib-Swig-0.9.6+ with Python 2.3?

Luigi Ballabio
On Mon, 2009-01-12 at 07:05 -0800, kmanley wrote:
> I've seen some references on the web to the fact that mingw32 can be used to
> build Python 2.3 C extensions. So my question is has anyone ever built
> QuantLib-SWIG 0.9.6+ using mingw32? If so can you please tell me exactly the
> steps you took to do so.

It's been years since I did it, but I guess you'll have to:

1) build QuantLib with gcc. You can do it either from within the mingw
shell (I'm not familiar with that, though) or with Dev-C++ by using the
QuantLib.dev project distributed in the release;

2) tell Python to use gcc when compiling the extension. You'll do it by
running

python setup.py build --compiler=mingw32

As I said, it's been a while, so the above might fail. Please tell me
how you fare, so we can try to fix any errors...

Luigi


--

The most exciting phrase to hear in science, the one that heralds new
discoveries, is not "Eureka!" but "That's funny..."
-- Isaac Asimov



------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users
Reply | Threaded
Open this post in threaded view
|

Re: anyone using Quantlib-Swig-0.9.6+ with Python 2.3?

hari001
In reply to this post by kmanley


I've seen some references on the web to the fact that mingw32 can be used to build Python 2.3 C extensions. So my question is has anyone ever built QuantLib-SWIG 0.9.6+ using mingw32? If so can you please tell me exactly the steps you took to do so.

Thanks for any help!
Jimmy


Equity Loans