-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MAINTENANCE] add script for easy cocotb environment preparation
- Loading branch information
1 parent
9e7c041
commit 8425e81
Showing
2 changed files
with
26 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/bin/sh | ||
|
||
OFM_PATH=../../ndk/ofm | ||
|
||
#swbase=../../../swbase/ | ||
swbase=git+https://github.com/CESNET/ndk-sw.git#subdirectory= | ||
|
||
PKG_PYNFB=${swbase}pynfb/ | ||
PKG_LIBNFBEXT_PYTHON=${swbase}ext/libnfb_ext_python/ | ||
PKG_COCOTBEXT_OFM=$OFM_PATH/python/cocotbext/ | ||
|
||
# Python virtual environment | ||
python -m venv venv-cocotb | ||
source venv-cocotb/bin/activate | ||
|
||
python -m pip install cython wheel | ||
python -m pip install pylibfdt fdt | ||
python -m pip install $PKG_PYNFB | ||
python -m pip install $PKG_LIBNFBEXT_PYTHON | ||
python -m pip install $PKG_COCOTBEXT_OFM | ||
|
||
echo "" | ||
echo "Now activate environment with:" | ||
echo "source venv-cocotb/bin/activate" |