blob: c0cf774995b90ea17959c6f40d13d6ba780115a1 [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
Harrison Mutai6361dbe2023-02-16 14:12:40 +000021 python3 -m pip install poetry==1.3.2 ||
22 python3 -m pip install poetry==1.3.2 --no-cache-dir
Chris Kay23be56a2021-12-07 16:25:05 +000023)