From 1c7cefa1d45f7ebb4e3150bbce7f4286826961ed Mon Sep 17 00:00:00 2001 From: Dmitry Tantsur Date: Wed, 3 Feb 2021 12:14:28 +0100 Subject: [PATCH] Add a workaround for openSUSE They keep shipping broken bundled packages in their venv module. While we may want to eventually deprecate openSUSE support, provide a work around to unbreak people. Change-Id: Ib5c1730f5325e726bf3aef164cfaef01ad4c7a13 Story: #2008591 Task: #41747 --- releasenotes/notes/opensuse-pip-f708b89d30557f0a.yaml | 5 +++++ scripts/install-deps.sh | 5 +++++ 2 files changed, 10 insertions(+) create mode 100644 releasenotes/notes/opensuse-pip-f708b89d30557f0a.yaml diff --git a/releasenotes/notes/opensuse-pip-f708b89d30557f0a.yaml b/releasenotes/notes/opensuse-pip-f708b89d30557f0a.yaml new file mode 100644 index 000000000..ffa6b5568 --- /dev/null +++ b/releasenotes/notes/opensuse-pip-f708b89d30557f0a.yaml @@ -0,0 +1,5 @@ +--- +fixes: + - | + Works around `broken setuptools in virtual environments on openSUSE Leap + `_. diff --git a/scripts/install-deps.sh b/scripts/install-deps.sh index 893c5e9a6..15d9f4a8d 100755 --- a/scripts/install-deps.sh +++ b/scripts/install-deps.sh @@ -141,6 +141,11 @@ EOF export PIP_OPTS="--upgrade-strategy only-if-needed" +if [[ $OS_FAMILY == "Suse" ]]; then + # https://storyboard.openstack.org/#!/story/2008591 + ${PIP} install -U setuptools +fi + echo "Installing bindep" ${PIP} install bindep