Python package


Intro

Setting up Kotori as Python package is suitable for general Hacking on Kotori or for installing on platforms where there’s no native distribution package available yet.

Kotori can be installed in different variants.

Python Eggs can be installed into virtualenvs and into the system, both in editable and non-editable modes.

Get ready

Prerequisites

# Prepare system
apt install build-essential libffi-dev libssl-dev python-dev python-pip python-virtualenv

virtualenv

Installing Kotori with pip inside a Python virtualenv would be perfect when playing around. You will not need root permissions and the Python libraries of your system distribution will stay completely untouched. See next section for how to setup a Python virtulenv environment. See also Hacking on Kotori for getting hold of the git repository when installing from source.

# Create virtualenv
make virtualenv

# Activate virtualenv
source .venv27/bin/activate

Setup

Install from package repository

# Install latest Kotori release with extra feature "daq"
pip install kotori[daq] --extra-index-url=https://packages.elmyra.de/elmyra/foss/python/ --upgrade

Install from git repository

pip install --editable git+https://github.com/zerotired/kotori.git#egg=kotori[daq]

Install a particular source archive file

pip install https://packages.elmyra.de/elmyra/foss/python/kotori/kotori-0.15.0.tar.gz