home · contact · privacy
Add setup script.
authorChristian Heller <c.heller@plomlompom.de>
Tue, 19 Jan 2016 22:36:58 +0000 (23:36 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Tue, 19 Jan 2016 22:36:58 +0000 (23:36 +0100)
README [new file with mode: 0644]
README.md [deleted file]
run.sh [new file with mode: 0755]

diff --git a/README b/README
new file mode 100644 (file)
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 (file)
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 (executable)
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