From: Kevin Sandi Date: Fri, 20 Jan 2023 16:44:41 +0000 (-0600) Subject: Fix: pin setuptools to avoid version string format issues X-Git-Tag: v0.83.3^0 X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?p=releng%2Fglobal-jjb.git;a=commitdiff_plain;h=e99537ba20b5d2e53d6478791d353c5f94128e9e Fix: pin setuptools to avoid version string format issues Issue-ID: RELENG-4562 Signed-off-by: Kevin Sandi Change-Id: I13737f8a5d671ba2c1f66cd87ae817ead8d5442c --- 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"