Skip to content

Commit

Permalink
Make install/update/run a little simpler if using local .venv
Browse files Browse the repository at this point in the history
  • Loading branch information
freiheit committed Nov 26, 2023
1 parent 0b91547 commit 929d74c
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
9 changes: 9 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/sh

if which yum; then
sudo yum --skip-broken -y install python3.11 python3.11-devel python3.11-pip python3.11-pip-wheel python3.11-wheel
fi
# TODO: elif apt ...

python3.11 -m venv --symlinks --system-site-packages .venv
./.venv/bin/pip install -r requirements.txt
3 changes: 3 additions & 0 deletions run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh

./.venv/bin/python3 mvkdicebot.py
3 changes: 3 additions & 0 deletions update.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh

./.venv/bin/pip install -r requirements.txt

0 comments on commit 929d74c

Please sign in to comment.