[[public.kgi.edu/~fbergman]]

 

 

 

SBW Python bindings:

This site contains information on how to build the SBW Python bindings.

  • The first step is to download and extract the source code:

    tar -zxf PythonSBW.tar.gz

    This will create a directory PythonSBW. The next step is to tell the build process where the SBW include and lib files can be found. (These should be build prior to this, or grab it from here):

    ln -s $SBW_HOME/include PythonSBW/Extensions/include

    ln -s $SBW_HOME/lib PythonSBW/Extensions/lib

    Now all that's left to do is to install the Python bindings using:

    sudo python setup.py install

    This will install the python extension for the python version that invoked setup.py.

  • That's it basically. For convenience you might want to create a startup script that invokes:

    python -i Scripts/sbwStartup.py

    This gives you a nice interface for all SBW modules and will automatically wrap all starting SBW Modules into python objects. For further reference see also the SBW Python documentation.
©2006 Frank Bergmann
Valid XHTML 1.0 Transitional