"wrappers/vscode:/vscode.git/clone" did not exist on "96e6c4bc2bd053e5ec9119cb8c8a3e9103d9bb68"
prepare.sh 856 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
jchodera's avatar
jchodera committed
9
export VERSION="latest"
10
11
export PLATFORM="MacOSX"
export ARCH="x86_64"
jchodera's avatar
jchodera committed
12
13
export MINICONDA="Miniconda3-$VERSION-$PLATFORM-$ARCH.sh"
if [ -f $WORKSPACE/miniconda ];
14
then
15
   echo "miniconda already exists"
16
17
else
   echo "Downloading miniconda..."
jchodera's avatar
jchodera committed
18
19
20
   rm -rf $WORKSPACE/Miniconda3-*
   wget https://repo.continuum.io/miniconda/${MINICONDA}
   bash ${MINICONDA} -b -p $WORKSPACE/miniconda
21
22
   PIP_ARGS="-U"
fi
23

24
# Add to path.
25
26
27
28
29
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