Skip to content

Commit

Permalink
Pin setuptools during image build
Browse files Browse the repository at this point in the history
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 <elfosardo@gmail.com>
  • Loading branch information
elfosardo committed Sep 24, 2024
1 parent b8a9a22 commit 82692ba
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion prepare-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down

0 comments on commit 82692ba

Please sign in to comment.