| 1 | The MUSCLE Python API closely resembles the C api but is slightly more brief. Currently, only Python 2.x is supported. |
| 2 | It is enabled by default on the latest version of MUSCLE, and can be forced to be enabled by setting |
| 3 | {{{ |
| 4 | $ cd [MUSCLE_SRC]/build |
| 5 | $ export MUSCLE_BUILD_OPTIONS="-DBUILD_PYTHON=ON" |
| 6 | $ ./build.sh [MUSCLE_INSTALL_DIR] |
| 7 | }}} |
| 8 | It will then be built as the Python module. By doing |
| 9 | {{{ |
| 10 | $ source [MUSCLE_INSTALL_DIR]/etc/muscle.profile |
| 11 | }}} |
| 12 | it gets included in the Python module path. The latest information about the module can always be found by doing |
| 13 | {{{ |
| 14 | $ python |
| 15 | import muscle |
| 16 | help(muscle) |
| 17 | }}} |