-
Notifications
You must be signed in to change notification settings - Fork 91
Installation
The latest release of Calvin is available as a standard python package named er-calvin and on most recent linux-based systems, and a few others, Calvin can be installed with
pip install --user er-calvin
That's it. This will install a basic Calvin, ready for use. Depending on your system, it may be necessary to install some external dependencies. For debian-based systems, you need libffi-dev
and libssl-dev
. Of course, you also need to have python
and pip
installed.
Note that there are some known (and probably some unknown) limitations to this, e.g. the examples directory will be located in the installation and not readily available for experimentation. In order to get access to the examples, either browse them on GitHub, and download the ones you are interested in, or download the source in its entirety.
The most up-to-date Calvin can be found on github. The develop-branch (often) is more feature rich, whereas the master-branch (usually) is more stable. (This may vary over time.)
If you are considering making any changes to Calvin or just want to have a look at the code, we recommend installing from source in a virtual environment by following the steps below (assuming you have git
and pip
installed.)
- Install and/or update
pip
andvirtualenv
:pip install --update pip virtualenv
- Clone calvin repository:
git clone https://www.github.com/EricssonResearch/calvin-base
- Create virtual environment:
mkdir -p ~/.virtualenvs/test-calvin; virtualenv ~/.virtualenvs/test-calvin
- Activate environment
source ~/.virtualenvs/test-calvin/bin/activate
- Install (editable) Calvin:
pip install -r test-requirements.txt -e .