add symbiflow-install notes
[dev-env-setup.git] / cocotb-install
1 #!/bin/bash
2 if [ "$EUID" -ne 0 ]
3 then echo "Please run as root using 'sudo bash'"
4 exit
5 fi
6
7 apt-get update -y
8 apt-get install -y git python3 python3-dev g++ make python3-setuptools \
9 python3-pytest
10
11 # change into $SUDO_USER home directory
12 cd /home/$SUDO_USER
13 mkdir -p src/cocotb
14 cd src/cocotb
15
16 git clone https://github.com/cocotb/cocotb.git
17
18 cd cocotb
19 git checkout v1.5.2
20 python3 setup.py install
21
22 cd /home/$SUDO_USER/src/cocotb
23 chown -R $SUDO_USER .
24 chgrp -R $SUDO_USER .
25