From 812efb3ca7faea6e477c0b4c2dbe16081f7880a9 Mon Sep 17 00:00:00 2001 From: Ghanshyam Mann Date: Tue, 26 Jan 2021 15:04:53 -0600 Subject: [PATCH] Fix get-pip for python 3.5 get-pip.py is fixed for py2.7 in https://review.opendev.org/c/openstack/devstack/+/772462 This commit support it for py3.5 as devstack stable/train and stein still support ubuntu xenial which has py3.5 Also using Temepst 23.0.0 for xenial platform job which is compatible version on py3.5. Closes-Bug: #1913283 Change-Id: Icd40e41b5f3ef9a621ca1b9739875fcdd31abd74 --- .zuul.yaml | 4 ++++ tools/install_pip.sh | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/.zuul.yaml b/.zuul.yaml index 1b396951b7..bec9d7b0d1 100644 --- a/.zuul.yaml +++ b/.zuul.yaml @@ -530,6 +530,10 @@ parent: tempest-full-py3 description: Ubuntu Xenial platform test nodeset: openstack-single-node-xenial + vars: + devstack_localrc: + # use py3.5 compatible Tempest here. + TEMPEST_BRANCH: "23.0.0" voting: false - job: diff --git a/tools/install_pip.sh b/tools/install_pip.sh index 04cb0f6133..2901ba8507 100755 --- a/tools/install_pip.sh +++ b/tools/install_pip.sh @@ -102,6 +102,10 @@ function _install_get_pip { function install_get_pip { _install_get_pip python $PIP_GET_PIP_PY27_URL $LOCAL_PIP_PY27 if python3_enabled; then + if [[ "$PYTHON3_VERSION" == "3.5" ]]; then + PIP_GET_PIP_URL=$(dirname $PIP_GET_PIP_URL)/3.5/$(basename $PIP_GET_PIP_URL) + LOCAL_PIP=${LOCAL_PIP}-py35 + fi _install_get_pip python${PYTHON3_VERSION} $PIP_GET_PIP_URL $LOCAL_PIP fi }