xref: /OpenGrok/dev/install-python-packages.sh (revision 2a3a1daa2b6103551b2139e7ba63da7b5e19b1a4)
1b4571310SVladimir Kotal#!/bin/bash
2b4571310SVladimir Kotal
3e6804bb7SVladimir Kotalpython3 -m pip install --upgrade pip
4*2a3a1daaSVladimir Kotal
5e6804bb7SVladimir Kotalpython3 -m pip install -r opengrok-tools/src/main/python/requirements.txt
6*2a3a1daaSVladimir Kotalif [[ $? != 0 ]]; then
7*2a3a1daaSVladimir Kotal	echo "cannot install Python requirement packages"
8*2a3a1daaSVladimir Kotal	exit 1
9*2a3a1daaSVladimir Kotalfi
10*2a3a1daaSVladimir Kotal
11e6804bb7SVladimir Kotalpython3 -m pip install pep8 flake8 virtualenv pylint
12*2a3a1daaSVladimir Kotalif [[ $? != 0 ]]; then
13*2a3a1daaSVladimir Kotal	echo "cannot install Python packages"
14*2a3a1daaSVladimir Kotal	exit 1
15*2a3a1daaSVladimir Kotalfi
16