Fix: pin setuptools to avoid version string format issues 66/71166/1 v0.83.3
authorKevin Sandi <ksandi@contractor.linuxfoundation.org>
Fri, 20 Jan 2023 16:44:41 +0000 (10:44 -0600)
committerKevin Sandi <ksandi@contractor.linuxfoundation.org>
Fri, 20 Jan 2023 16:44:41 +0000 (10:44 -0600)
Issue-ID: RELENG-4562
Signed-off-by: Kevin Sandi <ksandi@contractor.linuxfoundation.org>
Change-Id: I13737f8a5d671ba2c1f66cd87ae817ead8d5442c

releasenotes/notes/pin-setuptools-d0b3e22c70e34605.yaml [new file with mode: 0644]
shell/python-tools-install.sh

diff --git a/releasenotes/notes/pin-setuptools-d0b3e22c70e34605.yaml b/releasenotes/notes/pin-setuptools-d0b3e22c70e34605.yaml
new file mode 100644 (file)
index 0000000..e25bb14
--- /dev/null
@@ -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
index e5d836b..59fb970 100644 (file)
@@ -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"