Add files

This commit is contained in:
2024-09-13 14:06:03 +02:00
commit 38b1937363
2 changed files with 43 additions and 0 deletions

19
pythonVenv.sh Executable file
View File

@@ -0,0 +1,19 @@
#!/bin/bash
set -e
while getopts d: arg
do
case "${arg}" in
d) TMP_DIR=${OPTARG};;
esac
done
ENV_DIR="${TMP_DIR=/tmp}"/.venv
if [ -d "${ENV_DIR}" ]; then
. "${ENV_DIR}"/bin/activate
else
python3 -m venv "${ENV_DIR}"
. "${ENV_DIR}"/bin/activate
pip3 install wheel pyyaml jinja2-cli yamllint Cerberus
fi