prepare.sh 828 Bytes
Newer Older
1
2
3
4
#!/bin/tcsh

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

5
6
7
# Set relative workspace path.
export WORKSPACE=`pwd`

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

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

# Ensure configuration is up to date.
conda config --add channels http://conda.binstar.org/omnia
conda install --yes --quiet swig fftw3f pip
30
pip install sphinxcontrib-bibtex sphinxcontrib-lunrsearch sphinxcontrib-autodoc_doxygen