summaryrefslogtreecommitdiff
path: root/evergreen/external_auth_pip.sh
blob: 8f1eea5919c51a99d39ff945aeb7f7a428f92b44 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" > /dev/null 2>&1 && pwd)"
. "$DIR/prelude.sh"

set -o errexit
set -o verbose
activate_venv

# Not all git get project calls clone into ${workdir}/src so we allow
# callers to tell us where the pip requirements files are.
pip_dir="${pip_dir}"
if [[ -z $pip_dir ]]; then
  # Default to most common location
  pip_dir="${workdir}/src/etc/pip"
fi

# Same as above we have to use quotes to preserve the
# Windows path separator
external_auth_txt="$pip_dir/external-auth-requirements.txt"
python -m pip install -r "$external_auth_txt"