Skip to content
b45ch1 edited this page Sep 13, 2010 · 21 revisions

Installation

For simplicity use ~/workspace/PyCPPAD as root folder where everything gets installed.
You can adapt this path to fit your needs.

  1. Download PyCppAD
  2. Extract files to ~/workspace/PyCPPAD
  3. Go to the folder cppad-20081128 and do:
    ./configure --prefix=~/workspace/PyCPPAD

    You should now have the following folders: ~/workspace/PyCPPAD/include/cppad
  4. Do cd ~/workspace/PyCPPAD and modifify the SConstruct file:
    editor SConstruct

    Change LIBS, LIBPATH, INCLUDEPATH to fit your system. You shouldn’t have to change anything else.
  5. Now you can build the python module with:
    scons
    (scons works much the same as make. make automatically reads Makefile and scons automatically reads SConstruct)

If everything worked out, you should should have now the following file
~/workspace/PyCPPAD/release/cppad/_cppad.so

Easy example
change directory to ~/workspace/PyCPPAD/examples and run

python simple_multiplication.py
Clone this wiki locally