From e8223cf9acd6fe568becc7c1c6841f09c1195be7 Mon Sep 17 00:00:00 2001 From: Jessica Clarke Date: Tue, 21 May 2024 21:36:50 +0100 Subject: [PATCH] tests: Shut pip up about breaking system packages In their infinite wisdom the Python developers made even --user fail despite being an extremely normal thing for people to use with no good alternative. Set PIP_BREAK_SYSTEM_PACKAGES=1 in the environment to shut it up once and for all. --break-system-packages probably works too but I've already wasted enough time dealing with this insanity and don't want to have to figure out if that flag is too new for the baseline we support. --- tests/run_jenkins_tests.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/run_jenkins_tests.sh b/tests/run_jenkins_tests.sh index 6ddd479b2..f4179eaca 100755 --- a/tests/run_jenkins_tests.sh +++ b/tests/run_jenkins_tests.sh @@ -33,7 +33,7 @@ else cd "$_srcdir" fi -if ! python3 -m pip install --user -r requirements.txt; then +if ! PIP_BREAK_SYSTEM_PACKAGES=1 python3 -m pip install --user -r requirements.txt; then echo "FATAL: could not install requirements" exit 1 fi