-
Notifications
You must be signed in to change notification settings - Fork 10
Home
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.
- Download PyCppAD
- Extract files to
~/workspace/PyCPPAD - Go to the folder cppad-20081128 and do:
./configure --prefix=~/workspace/PyCPPAD
You should now have the following folders:~/workspace/PyCPPAD/include/cppad - Do
cd ~/workspace/PyCPPADand modifify the SConstruct file:editor SConstruct
ChangeLIBS, LIBPATH, INCLUDEPATHto fit your system. You shouldn’t have to change anything else. - Now you can build the python module with: (scons works much the same as make. make automatically reads Makefile and scons automatically reads SConstruct)
scons
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