@@ -12,41 +12,30 @@ if [[ "$(uname)" == "Linux" && -n "$LC_ALL" ]]; then
1212 echo
1313fi
1414
15- MINICONDA_DIR=" $HOME /miniconda3"
16-
17-
18- if [ -d " $MINICONDA_DIR " ]; then
19- echo
20- echo " rm -rf " $MINICONDA_DIR " "
21- rm -rf " $MINICONDA_DIR "
22- fi
2315
2416echo " Install Miniconda"
25- UNAME_OS=$( uname)
26- if [[ " $UNAME_OS " == ' Linux' ]]; then
17+ DEFAULT_CONDA_URL=" https://repo.continuum.io/miniconda/Miniconda3-latest"
18+ if [[ " $( uname -m) " == ' aarch64' ]]; then
19+ CONDA_URL=" https://github.com/conda-forge/miniforge/releases/download/4.10.1-4/Miniforge3-4.10.1-4-Linux-aarch64.sh"
20+ elif [[ " $( uname) " == ' Linux' ]]; then
2721 if [[ " $BITS32 " == " yes" ]]; then
28- CONDA_OS= " Linux-x86"
22+ CONDA_URL= " $DEFAULT_CONDA_URL - Linux-x86.sh "
2923 else
30- CONDA_OS= " Linux-x86_64"
24+ CONDA_URL= " $DEFAULT_CONDA_URL - Linux-x86_64.sh "
3125 fi
32- elif [[ " $UNAME_OS " == ' Darwin' ]]; then
33- CONDA_OS= " MacOSX-x86_64"
26+ elif [[ " $( uname ) " == ' Darwin' ]]; then
27+ CONDA_URL= " $DEFAULT_CONDA_URL - MacOSX-x86_64.sh "
3428else
35- echo " OS $UNAME_OS not supported"
29+ echo " OS $( uname ) not supported"
3630 exit 1
3731fi
38-
39- if [ " ${TRAVIS_CPU_ARCH} " == " arm64" ]; then
40- CONDA_URL=" https://github.com/conda-forge/miniforge/releases/download/4.8.5-1/Miniforge3-4.8.5-1-Linux-aarch64.sh"
41- else
42- CONDA_URL=" https://repo.continuum.io/miniconda/Miniconda3-latest-$CONDA_OS .sh"
43- fi
32+ echo " Downloading $CONDA_URL "
4433wget -q $CONDA_URL -O miniconda.sh
4534chmod +x miniconda.sh
4635
47- # Installation path is required for ARM64 platform as miniforge script installs in path $HOME/miniforge3.
36+ MINICONDA_DIR=" $HOME /miniconda3"
37+ rm -rf $MINICONDA_DIR
4838./miniconda.sh -b -p $MINICONDA_DIR
49-
5039export PATH=$MINICONDA_DIR /bin:$PATH
5140
5241echo
0 commit comments