From 4b37dae6e9acef89301a3c1a5fe9ce9f3e66a11c Mon Sep 17 00:00:00 2001 From: R Veera Kumar Date: Sun, 23 May 2021 00:33:59 +0530 Subject: [PATCH] Added cocotb setup script. --- cocotb-install | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 cocotb-install diff --git a/cocotb-install b/cocotb-install new file mode 100755 index 0000000..4a34adb --- /dev/null +++ b/cocotb-install @@ -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 + -- 2.30.2