From 78d1072a0652768e9403aec724ab59fe75eeba78 Mon Sep 17 00:00:00 2001 From: Stephanos Ioannidis Date: Thu, 15 Dec 2022 22:12:06 +0900 Subject: [PATCH] base: Add Python package check pip install command does not return a non-zero exit code when there exists a dependency conflict. This commit adds a `pip3 check` call, which validates all installed package dependencies and returns a non-zero exit code when there is a breakage. Signed-off-by: Stephanos Ioannidis --- Dockerfile.base | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile.base b/Dockerfile.base index 42b988a..4d3ae1e 100644 --- a/Dockerfile.base +++ b/Dockerfile.base @@ -114,7 +114,8 @@ RUN python3 -m pip install -U pip && \ -r https://raw.githubusercontent.com/zephyrproject-rtos/zephyr/master/scripts/requirements.txt \ -r https://raw.githubusercontent.com/zephyrproject-rtos/mcuboot/master/scripts/requirements.txt \ awscli GitPython imgtool junitparser numpy protobuf PyGithub \ - pylint sh statistics west + pylint sh statistics west && \ + pip3 check # Clean up stale packages RUN apt-get clean -y && \