Re: Building Python Extensions

Posted by Luigi Ballabio on
URL: http://quantlib.414.s1.nabble.com/Building-Python-Extensions-tp1136p1139.html

On Mon, 2007-07-09 at 06:30 -0700, newbie73 wrote:
> I am using Windows XP with Python 2.4

- open a command-line prompt and change the directory to
  QuantLib-SWIG\Python

- execute the command

  set QL_DIR=C:\whatever\QuantLib-0.8.0

  (of course, you'll have to replace the path above with whatever
  directory you've installed QuantLib to)

- you're ready. Execute the command

  python setup.py build test

  to build the bindings. Python 2.4 on Windows will look for
  Visual C++ 7.1, so you'll need it installed. There might be ways
  to use other compilers, but I'm not sure about it. Also, I'm assuming
  that you're trying to build a released version. If you want to build
  from a Subversion snapshot, you'll need a couple of extra steps; drop
  us a line if this is the case.

- if everything worked, run

  python setup.py install

  and you'll install the module in the Python site library.

Hope this helps,
        Luigi


--

Glendower: I can call spirits from the vasty deep.
Hotspur: Why, so can I, or so can any man;
But will they come when you do call for them?
-- King Henry the Fourth Part I, Act III, Scene I



-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users