Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

I've developed a simple interface package, taking advantage of the fact that all applications built with our tools can link and run against the Python interpreter, to allow a seamles invokation seamless invocation of Python code from C++. Jim Chiang has provided invaluable help and suggested extensions.

...

The very small interface packages is "embed_python". It is currently in ScienceTools LATEST, and will migrate to the release soon. Non-ScienceTool users can check it out and build it.

Here is the outline of a very simple complete package that runs a test program, named "test_python", in only three files. The requirements file:

Code Block
package test_python
 

use embed_python *
 
application runit main.cxx

...