2023-01-21 00:34:45 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
CONDA_INSTALLER_URL="https://repo.anaconda.com/miniconda/Miniconda3-py38_22.11.1-1-Linux-x86_64.sh"
|
|
|
|
|
CONDA_INSTALLER_FILE="miniconda_installer_py38.sh"
|
2023-05-12 01:42:29 +02:00
|
|
|
CONDA_HOME="${CONDA_HOME:-miniconda}"
|
2023-01-21 00:34:45 +01:00
|
|
|
|
2023-09-20 23:58:58 +02:00
|
|
|
# The tool name format is "<tool>=<version>".
|
|
|
|
|
# If you want to use the latest version, just use "<tool>".
|
|
|
|
|
TOOLS=""
|
|
|
|
|
TOOLS+="klayout=0.28.3 "
|
2023-09-26 20:37:34 +02:00
|
|
|
TOOLS+="magic=8.3.363 "
|
2023-09-20 23:58:58 +02:00
|
|
|
TOOLS+="netgen=1.5.253 "
|
|
|
|
|
TOOLS+="ngspice=26 "
|
|
|
|
|
TOOLS+="trilinos=12.12.1 "
|
|
|
|
|
TOOLS+="xyce=7.4"
|
2023-01-21 00:34:45 +01:00
|
|
|
|
2023-05-12 01:42:29 +02:00
|
|
|
# Install miniconda if not already installed
|
|
|
|
|
if [[ ! -d "${CONDA_HOME}/bin" ]]
|
2023-01-21 00:34:45 +01:00
|
|
|
then
|
|
|
|
|
curl -s -o ${CONDA_INSTALLER_FILE} ${CONDA_INSTALLER_URL}
|
2023-05-12 01:42:29 +02:00
|
|
|
/bin/bash ${CONDA_INSTALLER_FILE} -b -p ${CONDA_HOME}
|
2023-01-21 00:34:45 +01:00
|
|
|
rm ${CONDA_INSTALLER_FILE}
|
2023-05-12 01:42:29 +02:00
|
|
|
source ${CONDA_HOME}/bin/activate
|
2023-01-21 00:34:45 +01:00
|
|
|
|
2023-01-23 07:42:23 +01:00
|
|
|
# Prioritize channels to prevent version conflicts
|
|
|
|
|
conda config --add channels conda-forge
|
|
|
|
|
conda config --add channels vlsida-eda
|
|
|
|
|
|
2023-01-21 00:34:45 +01:00
|
|
|
# Install iverilog from conda-eda
|
2023-01-28 05:30:56 +01:00
|
|
|
conda install -q -y -c litex-hub iverilog
|
2023-01-21 00:34:45 +01:00
|
|
|
|
|
|
|
|
# Install rest of the tools from vlsida-eda
|
|
|
|
|
for tool in ${TOOLS}
|
|
|
|
|
do
|
2023-01-28 05:30:56 +01:00
|
|
|
conda install -q -y -c vlsida-eda ${tool}
|
2023-01-21 00:34:45 +01:00
|
|
|
done
|
|
|
|
|
|
2023-04-25 19:59:58 +02:00
|
|
|
# Install required Python packages
|
|
|
|
|
# (This step isn't required but used to prevent possible issues)
|
2023-05-12 01:42:29 +02:00
|
|
|
python3 -m pip install -r requirements.txt
|
2023-04-25 19:59:58 +02:00
|
|
|
|
2023-01-21 00:34:45 +01:00
|
|
|
conda deactivate
|
|
|
|
|
fi
|
|
|
|
|
|