de585fdb37a6770d5afccdc911108526b96386b6
[releng.git] / jjb / releng / releng-release-create-venv.sh
1 #!/bin/bash
2 # SPDX-License-Identifier: Apache-2.0
3 ##############################################################################
4 # Copyright (c) 2018 The Linux Foundation and others.
5 # All rights reserved. This program and the accompanying materials
6 # are made available under the terms of the Apache License, Version 2.0
7 # which accompanies this distribution, and is available at
8 # http://www.apache.org/licenses/LICENSE-2.0
9 ##############################################################################
10 set -e -o pipefail
11 echo "---> Create virtualenv"
12
13 sudo -H pip install virtualenv
14 virtualenv $WORKSPACE/venv
15 # shellcheck source=$WORKSPACE/venv/bin/activate disable=SC1091
16 source $WORKSPACE/venv/bin/activate
17 pip install --upgrade pip
18 pip install -r releases/scripts/requirements.txt