Fix Python env issues - Part2 49/65249/4
authorJessica Wagantall <jwagantall@linuxfoundation.org>
Mon, 31 Aug 2020 21:13:22 +0000 (14:13 -0700)
committerJessica Wagantall <jwagantall@linuxfoundation.org>
Mon, 31 Aug 2020 21:53:39 +0000 (14:53 -0700)
This is a follow up for commit
f4f795bda67897b1b1e527e99e0b5f627ca1a4db
The release-job.sh script needed the same fix

Issue-ID: IT-20528
Signed-off-by: Jessica Wagantall <jwagantall@linuxfoundation.org>
Change-Id: I88fbad702fcd329c062a1f86a415ba99325882ab

shell/release-job.sh
shell/tox-run.sh

index 3ad4530..1c1b570 100644 (file)
 echo "---> release-job.sh"
 set -eu -o pipefail
 
-echo "INFO: creating virtual environment"
-virtualenv -p python3 /tmp/venv
-PATH=/tmp/venv/bin:$PATH
-pipup="python -m pip install -q --upgrade pip idna==2.8 lftools jsonschema twine yq"
-echo "INFO: $pipup"
-$pipup
+# shellcheck disable=SC1090
+source ~/lf-env.sh
+
+# Version controlled by JJB_VERSION
+lf-activate-venv lftools pip idna==2.8 lftools jsonschema twine yq readline
+
 # show installed versions
 python -m pip --version
 python -m pip freeze
index 91e040a..d7f4be2 100644 (file)
@@ -13,6 +13,12 @@ echo "---> tox-run.sh"
 # do not use -o pipefail
 set -eux
 
+# shellcheck disable=SC1090
+source ~/lf-env.sh
+
+# Version controlled by JJB_VERSION
+lf-activate-venv readline
+
 ARCHIVE_TOX_DIR="$WORKSPACE/archives/tox"
 ARCHIVE_DOC_DIR="$WORKSPACE/archives/docs"
 mkdir -p "$ARCHIVE_TOX_DIR"