From e2aab9b4ac64d336b72119a198e9c5b818a6c574 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ole=20Sch=C3=BCtt?= Date: Mon, 8 Jan 2024 22:41:51 +0100 Subject: [PATCH] Docker: Use Python virtual env for ASE test --- tools/docker/scripts/test_ase.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/docker/scripts/test_ase.sh b/tools/docker/scripts/test_ase.sh index e5252a91fc..ae537d0186 100755 --- a/tools/docker/scripts/test_ase.sh +++ b/tools/docker/scripts/test_ase.sh @@ -49,12 +49,17 @@ apt-get update -qq apt-get install -qq --no-install-recommends \ python3 \ python3-dev \ + python3-venv \ python3-pip \ python3-wheel \ python3-setuptools \ build-essential rm -rf /var/lib/apt/lists/* +# Create and activate a virtual environment for Python packages. +python3 -m venv /opt/venv +export PATH="/opt/venv/bin:$PATH" + echo -e "\n========== Installing ASE ==========" git clone --quiet --depth=1 --single-branch -b master https://gitlab.com/ase/ase.git /opt/ase cd /opt/ase/