coriolis-install, cp-scripts-to-chroot: adjusted names to align with the rest of...
[dev-env-setup.git] / cocotb-install
index 4a34adbd1527a11ba2e8bbe25d84d34ad79e2777..67c7a572aca88c1448958e50c43bbeee46e5f0b7 100755 (executable)
@@ -5,7 +5,21 @@ if [ "$EUID" -ne 0 ]
 fi
 
 apt-get update -y
-apt-get install -y git python3 python3-dev g++ make python3-pip
+apt-get install -y git python3 python3-dev g++ make python3-setuptools \
+       python3-pytest
 
-pip3 install git+https://github.com/cocotb/cocotb@v1.5.2
+# 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
+
+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 .