OpenRAM/install_conda.sh

44 lines
1.3 KiB
Bash
Raw Normal View History

2023-01-21 00:34:45 +01:00
#!/bin/bash
2024-01-18 23:24:22 +01:00
CONDA_INSTALLER_URL="https://repo.anaconda.com/miniconda/Miniconda3-py38_23.11.0-2-Linux-x86_64.sh"
2023-01-21 00:34:45 +01:00
CONDA_INSTALLER_FILE="miniconda_installer_py38.sh"
CONDA_HOME="${CONDA_HOME:-miniconda}"
2023-01-21 00:34:45 +01: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 "
TOOLS+="magic=8.3.363 "
TOOLS+="netgen=1.5.253 "
TOOLS+="ngspice=26 "
2023-12-20 17:30:36 +01:00
TOOLS+="trilinos=12.12.1=1 "
TOOLS+="xyce=7.4=3"
2023-01-21 00:34:45 +01: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}
/bin/bash ${CONDA_INSTALLER_FILE} -b -p ${CONDA_HOME}
2023-01-21 00:34:45 +01:00
rm ${CONDA_INSTALLER_FILE}
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
# Install required Python packages
# (This step isn't required but used to prevent possible issues)
python3 -m pip install -r requirements.txt --ignore-installed
2023-01-21 00:34:45 +01:00
conda deactivate
fi