aboutsummaryrefslogtreecommitdiff
path: root/leg-kolla
diff options
context:
space:
mode:
authorMarcin Juszkiewicz <marcin.juszkiewicz@linaro.org>2019-01-23 22:02:32 +0100
committerMarcin Juszkiewicz <marcin.juszkiewicz@linaro.org>2019-01-23 22:02:32 +0100
commita14d946d63521fd6f0dcf8f1ff13a8191d13c79a (patch)
treedefc7eca8a00805eef43643e5f966a4caa0daa25 /leg-kolla
parent538fbd94cacb8c8d7c22bd54e382abe7300a3b2b (diff)
leg-kolla: use Python3 for Stein builds
Change-Id: I6314479dd971dc7d07c918e991c9847c7dd11c40
Diffstat (limited to 'leg-kolla')
-rw-r--r--leg-kolla/build.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/leg-kolla/build.sh b/leg-kolla/build.sh
index 0e264839..87a26fbd 100644
--- a/leg-kolla/build.sh
+++ b/leg-kolla/build.sh
@@ -6,9 +6,11 @@ kolla_branch=${BRANCH}
kolla_ldc=${DEVCLOUD}
kolla_ldc_extras=${DEVCLOUD_EXTRA_PATCHES}
kolla_options=
+kolla_python=/usr/bin/python2
if [ -z "${kolla_branch}" -o "${kolla_branch}" == "master" ]; then
branch="stein"
+ kolla_python=/usr/bin/python3
elif [[ ${kolla_branch} = "stable"* ]]; then
branch=$(echo ${kolla_branch} | sed -e 's+stable/++g')
else
@@ -73,7 +75,7 @@ if [[ ! -z ${kolla_ldc} && ! -z ${kolla_ldc_extras} ]]; then
done
fi
-virtualenv --python=/usr/bin/python2 venv-for-kolla
+virtualenv --python=${kolla_python} venv-for-kolla
. venv-for-kolla/bin/activate
cd kolla