OpenRAM/install_conda.sh

36 lines
1.0 KiB
Bash
Raw Normal View History

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"
CONDA_BASE="miniconda"
TOOLS="klayout magic netgen ngspice trilinos xyce"
# Install miniconda if not installed
if [ ! -d "miniconda" ]
then
curl -s -o ${CONDA_INSTALLER_FILE} ${CONDA_INSTALLER_URL}
/bin/bash ${CONDA_INSTALLER_FILE} -b -p ${CONDA_BASE}
rm ${CONDA_INSTALLER_FILE}
source ${CONDA_BASE}/bin/activate
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)
pip3 install -r requirements.txt
2023-01-21 00:34:45 +01:00
conda deactivate
fi