blob: 242458ea80d7d77e78d9b1a10e38c92b5e7d4334 [file] [log] [blame]
Chris Kayd0837902021-11-17 10:17:52 +00001#!/usr/bin/env bash
2
3#
Chris Kayfa262312023-02-22 12:46:45 +00004# Copyright (c) 2021-2023 Arm Limited. All rights reserved.
Chris Kayd0837902021-11-17 10:17:52 +00005#
6# SPDX-License-Identifier: BSD-3-Clause
7#
8
Chris Kayfa262312023-02-22 12:46:45 +00009if [ $(python3 -c 'import sys; print(sys.version_info[1])') -lt 7 ]; then
10 function python3() { python3.8 "${@}"; }
11fi
12
13python3 -m virtualenv .venv
Chris Kay23be56a2021-12-07 16:25:05 +000014
15source .venv/bin/activate
16
17(
18 export PIP_CACHE_DIR=${project_filer}/pip-cache
19
20 python3 -m pip install --upgrade pip
21 python3 -m pip install -r "${tf_root}/docs/requirements.txt" ||
22 python3 -m pip install -r "${tf_root}/docs/requirements.txt" \
23 --no-cache-dir # Avoid cache concurrency issues
24)