INSTALL

SYSTEM REQUIREMENTS

Make sure that your system meet requirements:

System requirements
Property Value
Debian GNU/Linux >= 8.0, <= 9.0
Bash >= 4.3, <= 5.0
Git >= 2.0, <= 3.0
Free storage >= 1.5GB
Verify system environment
# install required packages
apt-get install git

# verify pakcage versions
bash --version
git --version

# verify free storage
df --block-size=GB

CLONE SOURCE CODE

Get source code
git clone https://github.com/kevin-leptons/magnus
cd magnus

INSTALL VIRTUAL ENVIRONMENT

Install Python virtual environment
# create virtual environment
./env init

# enter virtual environment
. venv/bin/active

# exit virtual environment
deactive

Before development tasks, you must ensure that you entered Python virtual environment by command:

Enter Python virtual environment
. venv/bin/active

If MAGNUS development change Python version using, virtual environment must clean and install again.

Reinstall virtual environment
# if you are in virtual environment, exit from it
deactive

# clean current virtual environment
./env clean

# install virtual environment
./env init

INSTALL DEPEDENCY PACKAGES

Install dependency packages
./env install

During development, other people can change dependency packages in dev-requires.txt :

  • Add packages
  • Remove packages
  • Modify versions

So you must call ./env install to reinstall dependency packages. If not, you will see errors, warning about missing or not compative packages.

If virtual environment is installed, you also must call ./env install to reinstall dependency packages, because virtual environment and dependency packages before was removed.