From: Christian Heller Date: Tue, 19 Jan 2016 22:36:58 +0000 (+0100) Subject: Add setup script. X-Git-Url: https://plomlompom.com/repos/%7B%7B%20web_path%20%7D%7D/static/condition?a=commitdiff_plain;h=2f39a98c2652107f20780dfc2b4ecf03b6b4b057;p=plomlombot-irc.git Add setup script. --- diff --git a/README b/README new file mode 100644 index 0000000..1238b40 --- /dev/null +++ b/README @@ -0,0 +1,2 @@ +# plomlombot-irc +irc bot diff --git a/README.md b/README.md deleted file mode 100644 index 1238b40..0000000 --- a/README.md +++ /dev/null @@ -1,2 +0,0 @@ -# plomlombot-irc -irc bot diff --git a/run.sh b/run.sh new file mode 100755 index 0000000..685d07b --- /dev/null +++ b/run.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +# This script runs the plomlombot in a virtual environment with temporarily +# installed required external Python libraries. +set -e + +DIR_ENV=.temp_env + +pyvenv $DIR_ENV +source $DIR_ENV/bin/activate +pip install -r requirements.txt +set +e +echo +python3 plomlombot.py -n plomplombot "$@" +deactivate +rm -rf $DIR_ENV