1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-30 00:00:11 +01:00
Commit graph

4 commits

Author SHA1 Message Date
KeVteL
c165be5a5e Fixed build system
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>
2025-01-27 14:26:00 +01:00
KeVteL
fed466fd8d Change default Python-Wrapper Module install path.
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>
2025-01-27 14:26:00 +01:00
KeVteL
57cd42c85c Updated Wrapper Bindings:
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>
2025-01-27 14:26:00 +01:00
KeVteL
5bc63f7524 Python-Wrapper added
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>
2025-01-27 14:26:00 +01:00