This is considered as advanced in OpenEye toolkit usage as an end-user can get. This feature is beta, so any feedback is much appreciated. Have fun hacking!
The extension directory comes with a simple example of writing a function to calculate molecular weight in OEChem C++ and then exposing it to PyOEChem scripts. The function being wrapped is ExampleCalcMolWt in molwt.cpp. The function is accessed through the example module (see molwt.py).
- install C++ compiler
- install SWIG 3.0.2
- untar OpenEye Python distribution into source tree
- untar OpenEye C++ distribution into source tree
- ./configure
- make
- ctest
- python molwt.py