forked from litex-hub/litex-conda-packages
-
Notifications
You must be signed in to change notification settings - Fork 0
/
conda-get.sh
executable file
·56 lines (43 loc) · 1.32 KB
/
conda-get.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#!/bin/bash
set -x
set -e
CONDA_PATH=${1:-~/conda}
if [ $TRAVIS_OS_NAME = 'windows' ]; then
if [ ! -d $CONDA_PATH -o ! -z "$CI" ]; then
choco install openssl.light
choco install miniconda3 --params="/AddToPath:1"
fi
export CONDA_PATH='/c/tools/miniconda3'
export PATH=$CONDA_PATH/bin/:$CONDA_PATH/Scripts/:$PATH
else
if [ $TRAVIS_OS_NAME = 'linux' ]; then
sys_name=Linux
else
sys_name=MacOSX
fi
wget -c https://repo.continuum.io/miniconda/Miniconda3-latest-${sys_name}-x86_64.sh
chmod a+x Miniconda3-latest-${sys_name}-x86_64.sh
if [ ! -d $CONDA_PATH -o ! -z "$CI" ]; then
./Miniconda3-latest-${sys_name}-x86_64.sh -p $CONDA_PATH -b -f
fi
export PATH=$CONDA_PATH/bin:$PATH
fi
echo $PATH
conda info
conda config --set safety_checks disabled
conda config --set channel_priority strict
mkdir -p ~/.conda/pkg
conda config --prepend pkgs_dirs ~/.conda/pkg
conda config --show
echo "python==3.7.*" > $CONDA_PATH/conda-meta/pinned
#echo "conda-build==3.14.0" >> $CONDA_PATH/conda-meta/pinned
conda install -y python
conda update -y conda
conda install -y conda-build
conda install -y conda-verify
if [ $TRAVIS_OS_NAME != 'windows' ]; then
conda install -y ripgrep
fi
conda install -y anaconda-client
conda install -y jinja2
conda update -y --all