From ed900734221f2f61e4b1316be6aba040cfb78b1b Mon Sep 17 00:00:00 2001 From: Ricardo Ribeiro Date: Mon, 20 Nov 2017 13:45:28 +0000 Subject: [PATCH] Add install and update scripts --- .gitignore | 2 ++ __init__.py | 0 install.py | 18 ++++++++++++++++++ update.py | 7 +++++++ 4 files changed, 27 insertions(+) create mode 100644 .gitignore create mode 100644 __init__.py create mode 100644 install.py create mode 100644 update.py diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1b05740 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ + +__pycache__/ diff --git a/__init__.py b/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/install.py b/install.py new file mode 100644 index 0000000..6da139d --- /dev/null +++ b/install.py @@ -0,0 +1,18 @@ +import pip + + +def install(): + pip.main(['install', '--upgrade', 'logging-bootstrap/.']) + pip.main(['install', '--upgrade', 'pysettings/.']) + pip.main(['install', '--upgrade', 'pyforms/.']) + pip.main(['install', '--upgrade', 'pyforms-generic-editor/.']) + pip.main(['install', '--upgrade', 'pybpod-api/.']) + pip.main(['install', '--upgrade', 'pybpod-gui-api/.']) + pip.main(['install', '--upgrade', 'pybpod-gui-plugin/.']) + pip.main(['install', '--upgrade', 'pybpod-gui-plugin-session-history/.']) + pip.main(['install', '--upgrade', 'pybpod-gui-plugin-timeline/.']) + pip.main(['install', '--upgrade', 'pybpod-rotary-encoder-module/.']) + + +if __name__=='__main__': + install() \ No newline at end of file diff --git a/update.py b/update.py new file mode 100644 index 0000000..66403b8 --- /dev/null +++ b/update.py @@ -0,0 +1,7 @@ +from subprocess import call +from install import install + + +call(["git", "pull", "--recurse-submodules"]) +install() +