From cab1909d0fe0107fcf520103abc7f17ccbb4411e Mon Sep 17 00:00:00 2001 From: R Veera Kumar Date: Sun, 23 May 2021 20:09:30 +0530 Subject: [PATCH] Updated and finalized cocotb script. --- cocotb-install | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/cocotb-install b/cocotb-install index c7cf901..67c7a57 100755 --- a/cocotb-install +++ b/cocotb-install @@ -5,13 +5,21 @@ if [ "$EUID" -ne 0 ] fi apt-get update -y -apt-get install -y git python3 python3-dev g++ make python3-pip \ - python3-setuptools +apt-get install -y git python3 python3-dev g++ make python3-setuptools \ + python3-pytest -# TODO, cd to SUDO_USER home directory just like in other scripts +# change into $SUDO_USER home directory +cd /home/$SUDO_USER +mkdir -p src/cocotb +cd src/cocotb + +git clone https://github.com/cocotb/cocotb.git -git clone https://github.com/cocotb/cocotb cd cocotb git checkout v1.5.2 python3 setup.py install +cd /home/$SUDO_USER/src/cocotb +chown -R $SUDO_USER . +chgrp -R $SUDO_USER . + -- 2.30.2