blob: 242458ea80d7d77e78d9b1a10e38c92b5e7d4334 [file] [log] [blame]
#!/usr/bin/env bash
#
# Copyright (c) 2021-2023 Arm Limited. All rights reserved.
#
# SPDX-License-Identifier: BSD-3-Clause
#
if [ $(python3 -c 'import sys; print(sys.version_info[1])') -lt 7 ]; then
function python3() { python3.8 "${@}"; }
fi
python3 -m virtualenv .venv
source .venv/bin/activate
(
export PIP_CACHE_DIR=${project_filer}/pip-cache
python3 -m pip install --upgrade pip
python3 -m pip install -r "${tf_root}/docs/requirements.txt" ||
python3 -m pip install -r "${tf_root}/docs/requirements.txt" \
--no-cache-dir # Avoid cache concurrency issues
)