-
Hello world
-
APIs & Services
- Available services
- Message signaling
- Rust Binding
- CAN Bus
- CANopen
- Modbus
- GPS
- Secure Storage
- Spawn Binding
- WiFi Binding
- Secure Gate Oidc
- Redpak Binding
- Platform info binding
-
CAN Bus
Build and installation
Prerequisites
Two development setups can be used with this sample:
- the redpesk SDK container, which provides an isolated OCI-based development environment;
- a redpesk framework built and installed locally from sources.
For the container-based setup, see the SDK container overview and follow the SDK container setup.
For a host installation, follow Build framework on your computer to build and install the AFB runtime and development environment from sources.
The runtime dependencies are:
- Python 3;
-
afb-libpython.
For binder usage, see Getting the binder.
No project-specific compilation is required to run the service directly from the Python sources. See Configuration and usage for the source-tree workflow.
Build the RPM package
RPM builds are handled by the redpesk factory tooling. The repository GitLab CI build job uses the official redpesk factory CI template and builds the package from helloworld-python-binding.spec.
The same package can be built through a redpesk factory or a configured redpesk local builder.
When using an RPM-based redpesk development environment, install the package build dependencies with:
dnf builddep helloworld-python-binding
Install from packages
On a system configured with the appropriate redpesk repositories, install the service with:
dnf install helloworld-python-binding
The packaged application is installed under:
/usr/redpesk/helloworld-python-binding/
Its launcher is located at:
/usr/redpesk/helloworld-python-binding/bin/helloworld-python-binding
The Python package is installed under:
/usr/redpesk/helloworld-python-binding/lib/helloworld_python_binding/
To verify the installed files, run:
rpm -ql helloworld-python-binding
For package deployment on a redpesk target, refer to the redpesk application deployment documentation.