From: R Veera Kumar Date: Sun, 23 May 2021 14:39:30 +0000 (+0530) Subject: Updated and finalized cocotb script. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cab1909d0fe0107fcf520103abc7f17ccbb4411e;p=dev-env-setup.git Updated and finalized cocotb script. --- 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 . +