summaryrefslogtreecommitdiffstats
path: root/jjb/releng/releng-release-create-venv.sh
blob: 69bebaff7f21cdfac609f8ac9d721b95963405af (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash
# SPDX-License-Identifier: Apache-2.0
##############################################################################
# Copyright (c) 2018 The Linux Foundation and others.
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Apache License, Version 2.0
# which accompanies this distribution, and is available at
# http://www.apache.org/licenses/LICENSE-2.0
##############################################################################
set -e -o pipefail
echo "---> Create virtualenv"

sudo -H pip3 install virtualenv
python3 -m venv $WORKSPACE/venv

# shellcheck source=$WORKSPACE/venv/bin/activate disable=SC1091
source $WORKSPACE/venv/bin/activate
python3 -m pip install --upgrade pip
python3 -m pip install -r releases/scripts/requirements.txt