Commit c5d5f048 authored by Maxime Hubert's avatar Maxime Hubert
Browse files

validate-execution: fix path to requirements when installing from main install script

parent c284e897
Pipeline #141619 passed with stage
in 33 seconds
#!/bin/bash
set -x
env_dir="python_env"
path=`realpath $(dirname $0)`
path_to_env_dir="$path/$env_dir"
current_path=`realpath $(dirname $0)`
path_to_env_dir="$current_path/$env_dir"
if [ -d $path_to_env_dir ];then
. $path_to_env_dir/bin/activate
else
sudo apt-get install python-dev -y
virtualenv -p python2 $path_to_env_dir
. $path_to_env_dir/bin/activate
python -m pip --no-cache-dir install -r requirements.txt
python -m pip --no-cache-dir install -r $current_path/requirements.txt
fi
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment