summaryrefslogtreecommitdiffstats
path: root/bin/helpers/algo-virtualenv
diff options
context:
space:
mode:
Diffstat (limited to 'bin/helpers/algo-virtualenv')
-rwxr-xr-xbin/helpers/algo-virtualenv20
1 files changed, 4 insertions, 16 deletions
diff --git a/bin/helpers/algo-virtualenv b/bin/helpers/algo-virtualenv
index 531873f..efb0c64 100755
--- a/bin/helpers/algo-virtualenv
+++ b/bin/helpers/algo-virtualenv
@@ -2,21 +2,9 @@
set -eu
set -o pipefail
-# using tmpdir as a virtualenv because the tozt-secrets filesystem is too small
-# to hold the whole python installation
-envdir="$(mktemp --tmpdir -d launch-algo.XXXXXXXXXX)"
-cleanup() {
- if perl -e'exit 1 unless $ARGV[0] =~ m{^/tmp/launch-algo.*$}' "$envdir"; then
- rm -rf "$envdir"
- fi
-}
-trap cleanup EXIT
-
-python2 -m virtualenv --python="$(command -v python2)" "$envdir"
+python -m virtualenv --python="$(command -v python2)" env
set +eu
-# shellcheck disable=SC1090
-. "$envdir"/bin/activate
+# shellcheck disable=SC1091
+source env/bin/activate
set -eu
-
-python -m pip install -U pip
-python -m pip install -r /mnt/algo/algo/requirements.txt
+python -m pip install -U pip virtualenv