From 6d7c4d198c1022ecd356987ea44736fee7a60078 Mon Sep 17 00:00:00 2001 From: Anil Belur Date: Mon, 5 May 2025 09:10:04 +1000 Subject: [PATCH] Fix: pin setuptools<66 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 --- jenkins-init-scripts/lf-env.sh | 5 +++-- releasenotes/notes/pin-setuptools-e736858eb9b349da.yaml | 6 ++++++ 2 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 releasenotes/notes/pin-setuptools-e736858eb9b349da.yaml diff --git a/jenkins-init-scripts/lf-env.sh b/jenkins-init-scripts/lf-env.sh index a85fae0f..ee506766 100644 --- a/jenkins-init-scripts/lf-env.sh +++ b/jenkins-init-scripts/lf-env.sh @@ -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 index 00000000..6675ecd5 --- /dev/null +++ b/releasenotes/notes/pin-setuptools-e736858eb9b349da.yaml @@ -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. -- 2.16.6