From cc744e17a1b486b897b2a6ada540da6c37a6184d Mon Sep 17 00:00:00 2001 From: Renaud Walder Date: Sat, 16 May 2026 13:29:37 +0200 Subject: [PATCH] Adding ensurepip verification for the build environnement (required by venv) --- scripts/build_env.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/build_env.sh b/scripts/build_env.sh index 530a373..88a7929 100755 --- a/scripts/build_env.sh +++ b/scripts/build_env.sh @@ -20,6 +20,12 @@ if [ "$?" -ne 0 ]; then echo "venv must be installed on the host distribution." exit -1 fi +# Check if venv is installed +python3 -c "import ensurepip" +if [ "$?" -ne 0 ]; then + echo "ensurepip must be installed on the host distribution." + exit -1 +fi # Install the virtual environment if needed if [ ! -d "$PY_VENV_DIR" ]; then