Skip to content

Commit

Permalink
tests: Shut pip up about breaking system packages
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jrtc27 committed May 21, 2024
1 parent d8e670f commit e8223cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/run_jenkins_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e8223cf

Please sign in to comment.