From 0c9e18ed836998a091421a9891fd510679aea7d0 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 --- prepare-image.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/prepare-image.sh b/prepare-image.sh index 96d6977f0..f0a4ab6f3 100755 --- a/prepare-image.sh +++ b/prepare-image.sh @@ -33,7 +33,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 --no-cache-dir pip==24.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 --no-cache-dir pip==24.1 setuptools==74.1.2 IRONIC_PKG_LIST_FINAL="/tmp/ironic-${INSTALL_TYPE}-list-final"