From 75cf6df1962f10426d80922b529d1df72389c7da Mon Sep 17 00:00:00 2001 From: Jessica Wagantall Date: Thu, 26 Apr 2018 15:31:08 -0700 Subject: [PATCH] Fix Pypi script Python version Fix Pypi build and publish scripts to run virtualenv with the correct PYTHON_VERSION specified in the job templates. Change-Id: I71f61775380ae56c204854ddde254b467e5e16f3 Issue-ID: Issue-ID: CIMAN-137 Signed-off-by: Jessica Wagantall --- shell/pypi-dist-build.sh | 2 +- shell/pypi-publish.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/shell/pypi-dist-build.sh b/shell/pypi-dist-build.sh index 7733f6242..bc3d4ae65 100644 --- a/shell/pypi-dist-build.sh +++ b/shell/pypi-dist-build.sh @@ -2,7 +2,7 @@ # Script to build PyPI artifacts set -e -x -o pipefail -virtualenv /tmp/v/twine +virtualenv -p "$PYTHON_VERSION" /tmp/v/twine source "/tmp/v/twine/bin/activate" pip install twine wheel diff --git a/shell/pypi-publish.sh b/shell/pypi-publish.sh index 7ea3fa2d9..2510ed38b 100644 --- a/shell/pypi-publish.sh +++ b/shell/pypi-publish.sh @@ -2,7 +2,7 @@ # Script to publush PyPI artifacts set -e -x -o pipefail -virtualenv /tmp/v/twine +virtualenv -p "$PYTHON_VERSION" /tmp/v/twine source "/tmp/v/twine/bin/activate" pip install twine -- 2.16.6