From 51cf7c6c05e7bff08160d93d0d56da3a6241026c Mon Sep 17 00:00:00 2001 From: Aurelien Bouteiller Date: Wed, 5 Nov 2025 10:52:22 -0500 Subject: [PATCH] python venv madness round 2: use ensurepip if installed (#308) When creating a python venv during the install_dependencies script, we try to use ensurepip if it is installed, as it deals better with cases where multiple venvs are active simultaneously. (as seen in CI buildbot) [ROCm/rocshmem commit: b7a6d86c6bb4747b9c13b843de75bbcc9bd686dd] --- projects/rocshmem/scripts/install_dependencies.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/rocshmem/scripts/install_dependencies.sh b/projects/rocshmem/scripts/install_dependencies.sh index 095dc94f81..7d7d52a22f 100755 --- a/projects/rocshmem/scripts/install_dependencies.sh +++ b/projects/rocshmem/scripts/install_dependencies.sh @@ -72,7 +72,7 @@ git clone --recursive $_OMPI_REPO cd ompi git checkout $_OMPI_COMMIT_HASH git submodule update --init --recursive -python3 -m venv --system-site-packages --without-pip venv +python3 -m ensurepip && python3 -m venv venv || python3 -m venv --system-site-packages --without-pip venv . venv/bin/activate python3 -m pip install -r docs/requirements.txt ./autogen.pl