-
Notifications
You must be signed in to change notification settings - Fork 2
/
build_intall.sh
35 lines (35 loc) · 1.15 KB
/
build_intall.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
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
bash miniconda.sh -b -p $HOME/miniconda
rm minconda.sh
export PATH="$HOME/miniconda/bin:$PATH"
hash -r
conda config --set always_yes yes --set changeps1 no
conda update conda -y
conda config --add channels intel
conda create -n intel intelpython3_core python=3
source activate intel
conda install cython numpy scipy matplotlib pandas h5py pytables jupyter joblib numba nose sympy -y
conda install pytest=3.3 -y
source deactivate
rm -rf ~/.condarc
mv build_data/.condarc_default ~/.condarc
mv build_data/.condarc_default ~/miniconda/envs/intel/.condarc
conda update conda -y
conda install numpy scipy matplotlib jupyter pandas h5py pytables jupyter numba nose -y
conda install pytest=3.3 -y
conda install python=3.6 -y
if [ "$1" != 'cluster' ]; then
sudo apt-get -qq update
sudo apt install libopenmpi-dev -y
sudo apt-get install mpich -y
else
module load mpich/3.2.1
fi
echo 'export PATH="/home/$USER/miniconda/bin:$PATH"' >> ~/.bashrc
source activate intel
git clone https://github.com/mpi4py/mpi4py.git
cd mpi4py
python setup.py build
python setup.py install
cd ..
rm -rf mpi4py