install_h5py.sh 421 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

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