install_h5py.sh 353 Bytes
Newer Older
Theo Steininger's avatar
Theo Steininger committed
1
#!/bin/bash
Theo Steininger's avatar
Theo Steininger committed
2 3 4
pip install cython

apt-get update -qy
Theo Steininger's avatar
Theo Steininger committed
5
apt-get install -y libhdf5-openmpi-dev
Theo Steininger's avatar
Theo Steininger committed
6

Theo Steininger's avatar
Theo Steininger committed
7 8
curl -s https://api.github.com/repos/h5py/h5py/tags | grep tarball_url | head -n 1 | cut -d '"' -f 4 | wget -i - -O h5py.tar.gz
tar xzf h5py.tar.gz
Theo Steininger's avatar
Theo Steininger committed
9
cd h5py-h5py*
Theo Steininger's avatar
Theo Steininger committed
10 11 12 13
export CC=mpicc
python setup.py configure --mpi
python setup.py build
python setup.py install
Theo Steininger's avatar
Theo Steininger committed
14
cd ..