diff options
author | Jessica Wagantall <jwagantall@linuxfoundation.org> | 2018-04-26 15:31:08 -0700 |
---|---|---|
committer | Jessica Wagantall <jwagantall@linuxfoundation.org> | 2018-04-26 15:31:08 -0700 |
commit | 75cf6df1962f10426d80922b529d1df72389c7da (patch) | |
tree | 06302b01e2b57a1de9640bcfd911d9756a4fd3d6 | |
parent | 34fcb1df5967366f73674a6e22c18a1e15476211 (diff) |
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 <jwagantall@linuxfoundation.org>
-rw-r--r-- | shell/pypi-dist-build.sh | 2 | ||||
-rw-r--r-- | 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 |