Page MenuHomePhabricator
Paste P24028

setup-venv
ActivePublic

Authored by JJMC89 on Apr 4 2022, 7:19 AM.
#!/bin/bash
# shellcheck disable=SC1090
set -euo pipefail
VENV="$HOME/repo/.venv"
rm -fdr "$VENV"
mkdir -p "$VENV"
python3 -m venv "$VENV"
. "$VENV/bin/activate"
python3 -m pip install # ...
deactivate

Event Timeline

toolforge-jobs venv setup
$ git clone [git url] $HOME/repo
$ toolforge-jobs run setup-venv --command $HOME/repo/.toolforge/bin/setup-venv --image tf-python39 --wait