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:
This will create a directorytar -zxf PythonSBW.tar.gzPythonSBW. 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
Now all that's left to do is to install the Python bindings using:ln -s $SBW_HOME/lib PythonSBW/Extensions/libsudo python setup.py installThis 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:
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.python -i Scripts/sbwStartup.py
