From 7528afa8570ecaef5fcbd73bf6c173183a140880 Mon Sep 17 00:00:00 2001 From: Riccardo Pittau Date: Tue, 24 Sep 2024 14:45:21 +0200 Subject: [PATCH] Pin setuptools during image build Usually the setuptools installed by the system is stable but a bit too old compared to the packages we use for ironic, so pinning a more recent version helps avoiding errors and incompatibilities. Signed-off-by: Riccardo Pittau (cherry picked from commit 82692ba7683ec1d48a67aaaaf6d8bf5496177c1d) --- prepare-image.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/prepare-image.sh b/prepare-image.sh index d1d5040df..119ecebf2 100755 --- a/prepare-image.sh +++ b/prepare-image.sh @@ -35,7 +35,11 @@ if [[ "$INSTALL_TYPE" == "source" ]]; then # NOTE(dtantsur): pip is a requirement of python3 in CentOS # shellcheck disable=SC2086 dnf install -y python3-pip $BUILD_DEPS - python3 -m pip install pip==21.3.1 + # NOTE(elfosardo): pinning pip and setuptools version to avoid + # incompatibilities and errors during packages installation; + # versions should be updated regularly, for example + # after cutting a release branch. + python3 -m pip install pip==21.3.1 setuptools==74.1.2 IRONIC_PKG_LIST_FINAL="/tmp/ironic-${INSTALL_TYPE}-list-final"