diff options
author | Chase Qi <chase.qi@linaro.org> | 2018-07-24 11:47:17 +0800 |
---|---|---|
committer | Chase Qi <chase.qi@linaro.org> | 2018-07-30 17:56:46 +0800 |
commit | 2d6d8363a1c1b1c4b47419ff7f0d8491b85f1d37 (patch) | |
tree | a723b8d4675297fc192f96cd5945b77a1d59b007 /automated | |
parent | 99fa7b2577f698f02a6463692dcb45a6bba8ecb9 (diff) |
linux/aep-pre-post: install dependencies with virtualevn
Run LISA within python2 virtualevn to avoid dependency confliction with
other tools.
Change-Id: I8e5487f740ba11ba695e73db2f3e8917cd672395
Signed-off-by: Chase Qi <chase.qi@linaro.org>
Diffstat (limited to 'automated')
-rwxr-xr-x | automated/linux/aep-pre-post/lisa.sh | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/automated/linux/aep-pre-post/lisa.sh b/automated/linux/aep-pre-post/lisa.sh index a592ec1..961a10d 100755 --- a/automated/linux/aep-pre-post/lisa.sh +++ b/automated/linux/aep-pre-post/lisa.sh @@ -32,13 +32,15 @@ RESULT_FILE="${OUTPUT}/result.txt" export RESULT_FILE if [ "${SKIP_INSTALL}" = "true" ] || [ "${SKIP_INSTALL}" = "True" ]; then - info_msg "Dependency installation skipped" + info_msg "Dependency and python2 venv installation skipped" + test -d .venv || error_msg "python2 venv for LISA is required, but not found!" + . .venv/bin/activate else - PKGS="build-essential autoconf automake libtool pkg-config trace-cmd sshpass kernelshark nmap net-tools tree libfreetype6-dev libpng12-dev python-pip python-dev python-tk" + PKGS="virtualenv build-essential autoconf automake libtool pkg-config trace-cmd sshpass kernelshark nmap net-tools tree libfreetype6-dev libpng12-dev python-pip python-dev python-tk" install_deps "${PKGS}" - pip install --upgrade --quiet pip && hash -r - pip install --upgrade --quiet setuptools - pip install --upgrade --quiet matplotlib numpy nose Cython trappy bart-py devlib psutil wrapt scipy IPython + virtualenv --python=python2 .venv + . .venv/bin/activate + pip install --quiet matplotlib numpy nose Cython trappy bart-py devlib psutil wrapt scipy IPython git clone "${LISA_REPOSITORY}" lisa ( cd lisa |