Fix: pin setuptools<66 63/73463/3 v0.91.4
authorAnil Belur <abelur@linuxfoundation.org>
Sun, 4 May 2025 23:10:04 +0000 (09:10 +1000)
committerAnil Belur <abelur@linuxfoundation.org>
Mon, 5 May 2025 00:48:21 +0000 (10:48 +1000)
Pin setuptools<66 version on lf-env.sh script until this is fixed
upstream. The lf-activate-venv function installs packages like
lftools, which in turn installs pygerrit2, and that fails due to
a broken pbr + setuptools >= 66 compatibility issues and bugs
are resolved.

Issue: IT-28129
Change-Id: I78576edbeec5f77ac710265ea28bd6e0bb5c2a0a
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
jenkins-init-scripts/lf-env.sh
releasenotes/notes/pin-setuptools-e736858eb9b349da.yaml [new file with mode: 0644]

index a85fae0..ee50676 100644 (file)
@@ -243,8 +243,9 @@ lf-activate-venv () {
             echo "${FUNCNAME[0]}(): INFO: Save venv in file: $venv_file"
         fi
 
-        "$lf_venv/bin/python3" -m pip install --upgrade --quiet pip \
-                        virtualenv || return 1
+        # Pin setuptools<66 until the issue with pbr + setuptools >=66 is fixed
+        "$lf_venv/bin/python3" -m pip install --upgrade --quiet \
+                        pip 'setuptools<66' virtualenv || return 1
         if [[ -z $pkg_list ]]; then
             echo "${FUNCNAME[0]}(): WARNING: No packages to install"
         else
diff --git a/releasenotes/notes/pin-setuptools-e736858eb9b349da.yaml b/releasenotes/notes/pin-setuptools-e736858eb9b349da.yaml
new file mode 100644 (file)
index 0000000..6675ecd
--- /dev/null
@@ -0,0 +1,6 @@
+---
+fixes:
+  - |
+    Pin setuptools<66 version on lf-env.sh script until this is fixed upstream. The lf-activate-venv
+    function installs packages like lftools, which in turn installs pygerrit2, and that fails due
+    to a broken pbr + setuptools >= 66 compatibility issues and bugs are resolved.