prepare.sh 900 Bytes
Newer Older
1
#!/bin/bash
2
3
4
5
6
7
8

# Prepare for build by ensuring necessary prerequisites are locally installed.

# Set relative workspace path.
export WORKSPACE=`pwd`

# Install miniconda
9
export VERSION="latest"
10
11
export PLATFORM="Linux"
export ARCH="x86_64"
jchodera's avatar
jchodera committed
12
export MINICONDA="Miniconda3-$VERSION-$PLATFORM-$ARCH.sh"
13
14
15
16
17
if [ -f miniconda ];
then
   echo "miniconda already exists"
else
   echo "Downloading miniconda..."
18
   rm -rf Miniconda-* miniconda ~/.condarc
jchodera's avatar
jchodera committed
19
   wget --quiet https://repo.continuum.io/miniconda/${MINICONDA}
20
21
22
23
24
25
26
   bash ${MINICONDA} -b -p miniconda
   PIP_ARGS="-U"
fi

# Add to path.
export PATH=$WORKSPACE/miniconda/bin:$PATH

jchodera's avatar
jchodera committed
27
28
29
# Workaround for missing libgcrypt
yum install -y libgcrypt

30
# Ensure configuration is up to date.
31
32
conda config --add channels omnia
conda install --yes --quiet swig fftw3f pip doxygen sphinx sphinxcontrib-bibtex sphinxcontrib-lunrsearch sphinxcontrib-autodoc_doxygen lxml cmake