2020-10-23 17:59:08 +03:00
|
|
|
#!/bin/bash -e -o pipefail
|
2023-11-28 02:25:03 +01:00
|
|
|
################################################################################
|
|
|
|
|
## File: install-miniconda.sh
|
|
|
|
|
## Desc: Install Miniconda
|
|
|
|
|
################################################################################
|
2020-09-10 14:34:08 +03:00
|
|
|
|
2023-10-26 15:17:57 +02:00
|
|
|
source ~/utils/utils.sh
|
|
|
|
|
|
2023-11-30 13:39:32 +01:00
|
|
|
miniconda_installer_path=$(download_with_retry "https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-x86_64.sh")
|
2024-01-09 14:47:31 +01:00
|
|
|
chmod +x $miniconda_installer_path
|
|
|
|
|
sudo $miniconda_installer_path -b -p /usr/local/miniconda
|
2020-09-10 14:34:08 +03:00
|
|
|
|
2022-01-29 16:21:25 +03:00
|
|
|
# Chmod with full permissions recursively to avoid permissions restrictions
|
2022-02-01 11:23:03 +03:00
|
|
|
sudo chmod -R 777 /usr/local/miniconda
|
2022-01-29 16:21:25 +03:00
|
|
|
|
2020-09-10 14:34:08 +03:00
|
|
|
sudo ln -s /usr/local/miniconda/bin/conda /usr/local/bin/conda
|
|
|
|
|
|
2024-01-09 14:47:31 +01:00
|
|
|
if [[ -d $HOME/.conda ]]; then
|
|
|
|
|
sudo chown -R $USER $HOME/.conda
|
2020-12-23 22:14:13 +07:00
|
|
|
fi
|
|
|
|
|
|
2021-09-24 13:56:16 +03:00
|
|
|
echo "export CONDA=/usr/local/miniconda" >> $HOME/.bashrc
|
|
|
|
|
|
2021-01-22 09:26:28 +03:00
|
|
|
invoke_tests "Common" "Miniconda"
|