@@ -12,41 +12,30 @@ if [[ "$(uname)" == "Linux" && -n "$LC_ALL" ]]; then
12
12
echo
13
13
fi
14
14
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
23
15
24
16
echo " 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
27
21
if [[ " $BITS32 " == " yes" ]]; then
28
- CONDA_OS= " Linux-x86"
22
+ CONDA_URL= " $DEFAULT_CONDA_URL - Linux-x86.sh "
29
23
else
30
- CONDA_OS= " Linux-x86_64"
24
+ CONDA_URL= " $DEFAULT_CONDA_URL - Linux-x86_64.sh "
31
25
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 "
34
28
else
35
- echo " OS $UNAME_OS not supported"
29
+ echo " OS $( uname ) not supported"
36
30
exit 1
37
31
fi
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 "
44
33
wget -q $CONDA_URL -O miniconda.sh
45
34
chmod +x miniconda.sh
46
35
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
48
38
./miniconda.sh -b -p $MINICONDA_DIR
49
-
50
39
export PATH=$MINICONDA_DIR /bin:$PATH
51
40
52
41
echo
0 commit comments