From 78f9f5858dd1fb6bbbb974275033193da0a610b1 Mon Sep 17 00:00:00 2001 From: Dirk Alders Date: Mon, 25 Dec 2023 11:16:41 +0100 Subject: [PATCH] init_venv added for ansible installation --- z_server/init_venv | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 z_server/init_venv diff --git a/z_server/init_venv b/z_server/init_venv new file mode 100755 index 0000000..428ff04 --- /dev/null +++ b/z_server/init_venv @@ -0,0 +1,8 @@ +#!/bin/sh +# +BASEPATH=`realpath $(dirname $0)` + +python3 -m venv $BASEPATH/venv +$BASEPATH/venv/bin/pip install --upgrade pip +find $BASEPATH -name requirements.txt | xargs -L 1 $BASEPATH/venv/bin/pip install -r +$BASEPATH/venv/bin/pip list --outdated --format=json | jq -r '.[] | .name'|xargs -n1 $BASEPATH/venv/bin/pip install -U