From 3b71dbb3087219538c5656aafd1805e27b6fe1ff Mon Sep 17 00:00:00 2001 From: Amine Alami <43780877+Alami-Amine@users.noreply.github.com> Date: Tue, 23 Jul 2024 23:14:46 +0200 Subject: [PATCH] [CHIP project] fix setuptools bug (#12262) - this fixes docker build failure, due to bug introduced by update of [setuptools](https://pypi.org/project/setuptools/) python package to version 71 - the bug is described here: https://github.com/pypa/setuptools/issues/4483 - fix involves upgrading `packaging` to latest possible version, which fixes issue --- projects/connectedhomeip/Dockerfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/projects/connectedhomeip/Dockerfile b/projects/connectedhomeip/Dockerfile index b67430b56..0c1aa2021 100644 --- a/projects/connectedhomeip/Dockerfile +++ b/projects/connectedhomeip/Dockerfile @@ -27,6 +27,10 @@ RUN apt-get update && \ # the one already installed in /usr/local/bin ENV PATH="/usr/bin/:${PATH}" +# This fixes setuptools bug related to version 71 +# https://github.com/pypa/setuptools/issues/4483 +RUN pip install -U packaging + # PEP-517 needed for cryptography. Update pip RUN pip3 install --upgrade pip setuptools wheel