From b6c33674d2737fc47b9c90f08c86d1b5273c4061 Mon Sep 17 00:00:00 2001
From: dh00601 <dh00601@surrey.ac.uk>
Date: Fri, 17 Jun 2022 23:22:50 +0100
Subject: [PATCH] updated .gitignore and added install script again

---
 .gitignore |  1 -
 install.sh | 12 ++++++++++++
 2 files changed, 12 insertions(+), 1 deletion(-)
 create mode 100755 install.sh

diff --git a/.gitignore b/.gitignore
index b2b807b26..994be33f9 100644
--- a/.gitignore
+++ b/.gitignore
@@ -14,7 +14,6 @@ binarycpython_snippets
 reports/
 docs/examples/
 custom_logging.dwo
-install.sh
 
 # Standard template
 *.org~
diff --git a/install.sh b/install.sh
new file mode 100755
index 000000000..b81adec9d
--- /dev/null
+++ b/install.sh
@@ -0,0 +1,12 @@
+#!/bin/bash
+
+# Script to install binarycpython in the current venv
+
+VERSION_NUMBER=$(cat "VERSION")
+echo "installing binarcpython version $VERSION_NUMBER"
+
+python setup.py clean
+pip uninstall binarycpython
+python setup.py build --force
+python setup.py sdist
+pip install -v dist/binarycpython-$VERSION_NUMBER.tar.gz
-- 
GitLab