-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Internal-tag: [#53659] Signed-off-by: Robert Szczepanski <[email protected]>
- Loading branch information
1 parent
5c0943e
commit c043609
Showing
7 changed files
with
176 additions
and
94 deletions.
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 |
---|---|---|
|
@@ -17,6 +17,7 @@ exclude = | |
venv, | ||
builds, | ||
kenning-pipeline-manager, | ||
miniconda3, | ||
count = True | ||
show-source = True | ||
statistics = True |
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,39 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
ROOT_DIR="$(dirname "$0")/../.." | ||
PYTHON_VERSION=$1 | ||
|
||
if [ -z ${PYTHON_VERSION} ]; then | ||
echo "Please, provide Python version as a script" | ||
exit 1 | ||
fi | ||
|
||
install_deps() { | ||
# Install system dependencies | ||
apt-get update -qq | ||
apt-get install -y --no-install-recommends wget git python3-dev python3-venv make ninja-build gcc-riscv64-unknown-elf bsdextrautils verilator | ||
|
||
# Install conda package manager | ||
mkdir -p miniconda3 | ||
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda3/miniconda.sh | ||
bash miniconda3/miniconda.sh -b -u -p miniconda3 | ||
rm -rf miniconda3/miniconda.sh | ||
} | ||
|
||
configure_python_env() { | ||
. "${ROOT_DIR}/miniconda3/bin/activate" | ||
# Create Python environment | ||
conda create -n venv python="${PYTHON_VERSION}" | ||
|
||
# Install Python dependencies | ||
conda install -c conda-forge gcc=12.1.0 | ||
python3 -m pip install nox | ||
python3 -m pip install git+https://github.com/antmicro/tuttest | ||
} | ||
|
||
activate_python_env() { | ||
. "${ROOT_DIR}/miniconda3/bin/activate" | ||
conda activate venv | ||
} |
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 |
---|---|---|
|
@@ -136,3 +136,6 @@ dmypy.json | |
|
||
# Cython debug symbols | ||
cython_debug/ | ||
|
||
# Conda environment | ||
miniconda3 |
Empty file.
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