Fix virtualenv
[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 -p /usr/bin/python3 $WORKSPACE/venv
15
16 # shellcheck source=$WORKSPACE/venv/bin/activate disable=SC1091
17 source $WORKSPACE/venv/bin/activate
18 pip install --upgrade pip
19 pip install -r releases/scripts/requirements.txt