From 5db8acdf36ff960dca4bf9713281d27a83223dda Mon Sep 17 00:00:00 2001 From: Tim Wojtulewicz Date: Wed, 22 Feb 2023 08:16:25 -0700 Subject: [PATCH] Use ensurepip to install pip on FreeBSD The py39-pip package is sometimes not available on FreeBSD, and using ensurepip is the recommended way to install pip according to the pip documentation. ensurepip should be available in every python installation. --- ci/freebsd/prepare.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ci/freebsd/prepare.sh b/ci/freebsd/prepare.sh index 17b95c5141..6c0bfc2896 100755 --- a/ci/freebsd/prepare.sh +++ b/ci/freebsd/prepare.sh @@ -9,7 +9,8 @@ env ASSUME_ALWAYS_YES=YES pkg bootstrap pkg install -y bash git cmake swig bison python3 base64 flex ccache pkg upgrade -y curl pyver=$(python3 -c 'import sys; print(f"py{sys.version_info[0]}{sys.version_info[1]}")') -pkg install -y $pyver-sqlite3 $pyver-pip +pkg install -y $pyver-sqlite3 +python -m ensurepip --upgrade python -m pip install websockets junit2html