Chris Kay | d083790 | 2021-11-17 10:17:52 +0000 | [diff] [blame] | 1 | #!/usr/bin/env bash |
| 2 | |
| 3 | # |
Chris Kay | fa26231 | 2023-02-22 12:46:45 +0000 | [diff] [blame] | 4 | # Copyright (c) 2021-2023 Arm Limited. All rights reserved. |
Chris Kay | d083790 | 2021-11-17 10:17:52 +0000 | [diff] [blame] | 5 | # |
| 6 | # SPDX-License-Identifier: BSD-3-Clause |
| 7 | # |
| 8 | |
Chris Kay | fa26231 | 2023-02-22 12:46:45 +0000 | [diff] [blame] | 9 | if [ $(python3 -c 'import sys; print(sys.version_info[1])') -lt 7 ]; then |
| 10 | function python3() { python3.8 "${@}"; } |
| 11 | fi |
| 12 | |
| 13 | python3 -m virtualenv .venv |
Chris Kay | 23be56a | 2021-12-07 16:25:05 +0000 | [diff] [blame] | 14 | |
| 15 | source .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 | ) |