1 # Installation instructions for cocotb
3 ## Setting up new debootstrap and chroot into it
5 Run the following if you wish to isolate the cocotb build
6 from other software (reproducible builds) or use the schroot
7 auto-preparation script here:
8 <https://git.libre-soc.org/?p=dev-env-setup.git;a=blob;f=mk-deb-chroot;hb=HEAD>
10 export MY_CHROOT=/opt/chroot/cocotb
12 debootstrap stable $MY_CHROOT http://deb.debian.org/debian/
13 mount -t proc proc $MY_CHROOT/proc
14 mount -t sysfs sysfs $MY_CHROOT/sys
15 mount -t devpts devpts $MY_CHROOT/dev/pts/
16 chroot $MY_CHROOT /bin/bash
18 The dev-env-setup chroot script is a little more sophisticated
21 ## Steps to compile cocotb
23 ### Necessary software to install
25 apt-get install git python3 python3-dev g++ make \
26 python3-setuptools python3-pytest
30 git clone https://github.com/cocotb/cocotb.git
34 python3 setup.py install
36 Please adjust the install paths for cocotb.