Version 1 (modified by jorisborgdorff, 11 years ago) (diff)

--

The MUSCLE Python API closely resembles the C api but is slightly more brief. Currently, only Python 2.x is supported. It is enabled by default on the latest version of MUSCLE, and can be forced to be enabled by setting

$ cd [MUSCLE_SRC]/build
$ export MUSCLE_BUILD_OPTIONS="-DBUILD_PYTHON=ON"
$ ./build.sh [MUSCLE_INSTALL_DIR]

It will then be built as the Python module. By doing

$ source [MUSCLE_INSTALL_DIR]/etc/muscle.profile

it gets included in the Python module path. The latest information about the module can always be found by doing

$ python
import muscle
help(muscle)