now installs the .so in /usr/lib/pythonX.Y/lib-dynload
/usr/bin/... was the wrong place
the .so is a shared library not a shared binary
therefore: COMPONENT lib
instead of: COMPONENT bin
Signed-off-by: Kevin Vu te Laar <vu.te@rwth-aachen.de>
Default install Path is now /usr/in/<python-version>/lib-dynload.
It is useful for dynamic libraries (.so modules).
May consider building a Python Wheel.
Signed-off-by: Kevin Vu te Laar <vu.te@rwth-aachen.de>
Added "Array" class to hold multiple samples and be able to use
node_read() and node_write() properly in python.
The "Array" class decref's samples stored automatically during setting
values in python or the object being destroyed.:
Included node.h properly so that the bindings can be linked to
libvillas.so.
Now functions, if not required to have a different
implementation use the node_capi.cpp implementations directly.
Removed unnecessary type-casting functions.
node_new() checks for whether or not a name is provided and creates a
node accordingly.
fixed a memory leak in node_to_json_str().
node_to_json() and node_to_json_str(), right now do the same.
To do: update node_to_json() to return the type that would be returned
by the python json library.
Signed-off-by: Kevin Vu te Laar <vu.te@rwth-aachen.de>
Necessary changes to integrate the python wrapper into the existing
build system. Added the python wrapper Code.
Testing the build and functionality still has to be done.
Signed-off-by: KeVteL <k-telaar@t-online.de>
Signed-off-by: Kevin Vu te Laar <vu.te@rwth-aachen.de>