Installation
Currentyl this package is not available on pip. Please refer to the source installation instructions below.
Install from source
First, clone the repository, the main branch contains the latest stable version of the code.
git clone https://github.com/Nokia/DARF
If you don’t have git available consider downloading the code as a zip file from the repository following darf_link to obtain the zip file.
Once downloaded enter into the DARF directory.
Use the convenience Makefile to create a virtualenvironment.
cd DARF
make virtualenv
This script is going to instal the correct version of python and load all the required libraries to run DARF. The presence of virtualenv is required to run the script.
Once the virtual environment is created, you can activate it with:
source env/bin/activate
To deactivate the virtual environment, you can use:
deactivate
You can now install DARF using the following command from the main directory:
python3 -m pip install -e .
This will install DARF in editable mode, allowing you to make changes to the code and have them reflected immediately without needing to reinstall. This should be the goto option for developing components directly into the DARF ecosystem.
If you want to install DARF in a non-editable mode, you can use the following command:
python3 -m pip install .
To check if DARF is installed correctly, you can run the following command:
darf --help