From e99537ba20b5d2e53d6478791d353c5f94128e9e Mon Sep 17 00:00:00 2001 From: Kevin Sandi Date: Fri, 20 Jan 2023 10:44:41 -0600 Subject: [PATCH] Fix: pin setuptools to avoid version string format issues Issue-ID: RELENG-4562 Signed-off-by: Kevin Sandi Change-Id: I13737f8a5d671ba2c1f66cd87ae817ead8d5442c --- releasenotes/notes/pin-setuptools-d0b3e22c70e34605.yaml | 12 ++++++++++++ shell/python-tools-install.sh | 4 +++- 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 releasenotes/notes/pin-setuptools-d0b3e22c70e34605.yaml diff --git a/releasenotes/notes/pin-setuptools-d0b3e22c70e34605.yaml b/releasenotes/notes/pin-setuptools-d0b3e22c70e34605.yaml new file mode 100644 index 00000000..e25bb14a --- /dev/null +++ b/releasenotes/notes/pin-setuptools-d0b3e22c70e34605.yaml @@ -0,0 +1,12 @@ +--- +fixes: + - | + setuptools 66.0.0 enforces specific version number check. A lot of plugins + will fails on this, and generates the following error + pkg_resources.extern.packaging.version.InvalidVersion + + To temporarily fix this, we pin setuptools to <66.0.0 + + Further information + https://github.com/pypa/setuptools/issues/3772#issuecomment-1384342813 + https://setuptools.pypa.io/en/latest/history.html#v66-0-0 diff --git a/shell/python-tools-install.sh b/shell/python-tools-install.sh index e5d836bf..59fb9700 100644 --- a/shell/python-tools-install.sh +++ b/shell/python-tools-install.sh @@ -71,7 +71,9 @@ EOF fi python3 -m pip install --quiet --upgrade pip - python3 -m pip install --quiet --no-warn-script-location --upgrade setuptools + # TODO: temporarily pinning setuptools to avoid plugin version format issues + # https://github.com/pypa/setuptools/issues/3772#issuecomment-1384342813 + python3 -m pip install --quiet --no-warn-script-location --upgrade setuptools<66.0.0 python3 -m pip install --quiet --no-warn-script-location --upgrade lftools[openstack] python3 -m pip install --quiet --no-warn-script-location --upgrade \ --upgrade-strategy eager -r "$requirements_file" -- 2.16.6