From 9c0e339dafb05f846de22d9b3a94280ee17f677e Mon Sep 17 00:00:00 2001 From: Veiko Aasa Date: Sun, 19 Mar 2023 13:31:51 +0200 Subject: [PATCH] container: Force pip to install packages to system environment Without the change, pip refuses to install into system environment due to changes outlined in PEP 668. The following error is thrown: 'error: externally-managed-environment'. Signed-off-by: Veiko Aasa Reviewed-by: James Valleroy --- plinth/tests/functional/install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plinth/tests/functional/install.sh b/plinth/tests/functional/install.sh index 829274bfb..4ad8ee8b4 100755 --- a/plinth/tests/functional/install.sh +++ b/plinth/tests/functional/install.sh @@ -8,7 +8,7 @@ sudo apt-get install -yq --no-install-recommends \ python3-pip python3-wheel firefox-esr git smbclient # Use compatible versions of Splinter and Selenium -pip3 install --user selenium==4.2.0 splinter==0.17.0 pytest-splinter pytest-reporter-html1 +pip3 install --user --break-system-packages selenium==4.2.0 splinter==0.17.0 pytest-splinter pytest-reporter-html1 echo "Installing geckodriver" (