Added cocotb setup script.
authorR Veera Kumar <vklr@vkten.in>
Sat, 22 May 2021 19:03:59 +0000 (00:33 +0530)
committerR Veera Kumar <vklr@vkten.in>
Sat, 22 May 2021 19:03:59 +0000 (00:33 +0530)
cocotb-install [new file with mode: 0755]

diff --git a/cocotb-install b/cocotb-install
new file mode 100755 (executable)
index 0000000..4a34adb
--- /dev/null
@@ -0,0 +1,11 @@
+#!/bin/bash
+if [ "$EUID" -ne 0 ]
+  then echo "Please run as root using 'sudo bash'"
+  exit
+fi
+
+apt-get update -y
+apt-get install -y git python3 python3-dev g++ make python3-pip
+
+pip3 install git+https://github.com/cocotb/cocotb@v1.5.2
+