INSTALL¶
SYSTEM REQUIREMENTS¶
Make sure that your system meet requirements:
Property | Value |
---|---|
Debian GNU/Linux | >= 8.0, <= 9.0 |
Bash | >= 4.3, <= 5.0 |
Git | >= 2.0, <= 3.0 |
Free storage | >= 1.5GB |
# install required packages
apt-get install git
# verify pakcage versions
bash --version
git --version
# verify free storage
df --block-size=GB
CLONE SOURCE CODE¶
git clone https://github.com/kevin-leptons/magnus
cd magnus
INSTALL 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:
. venv/bin/active
If MAGNUS development change Python version using, virtual environment must clean and install again.
# if you are in virtual environment, exit from it
deactive
# clean current virtual environment
./env clean
# install virtual environment
./env init
INSTALL DEPEDENCY 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.
REFERENCES¶
- Debian
- https://www.debian.org/
- Bash
- https://www.gnu.org/software/bash/
- Advanced Package Tool
- https://wiki.debian.org/Apt
- Git
- https://git-scm.com/
- Python Virtual Environment
- http://python-guide-pt-br.readthedocs.io/en/latest/dev/virtualenvs/