This will do it on current OSX after installing port. Using parallel HDF5
port install gcc7
port install fftw-3 +mpich +gcc7
port install hdf5 +mpich
port install py36-h5py +mpich
port install mercurial swig libpng freetype ncurses zip freetype tcl tk
port install python36 dbus-python36 py36-cython py36-nose py36-setuptools swig-python py36-ipython py36-matplotlib py36-pandas py36-pyfftw py35-docopt py36-pathlib2 py36-apipkg py36-pip py36-numpy py36-scipy py36-mpi4py mpich-default py36-bottleneck py36-numexpr py36-scipy py36-tables
port variants py36-h5py
port rev-upgrade
port select --set python python34
port select --set cython cython36
port select --set mpi mpich-mp-fortran
port select --set pip pip36
export PATH=/opt/local/bin:/opt/local/sbin:$PATH
export CFLAGS="-I/opt/local/include/mpich-mp -I/opt/local/include -L/opt/local/lib -L/opt/local/lib/mpich-mp"
export LD_LIBRARY_PATH=/opt/local/lib:/usr:/opt/local/lib/mpich-mp
export FFTW_PATH=/opt/local
export MPI_PATH=/opt/local
export PYTHONPATH=~/dedalus
export HDF5_MPI="ON"
pip install --no-binary=h5py h5py>=2.7.1port install gcc7
port install fftw-3 +mpich +gcc7
port install hdf5 +mpich
port install py36-h5py +mpich
port install mercurial swig libpng freetype ncurses zip freetype tcl tk
port install python36 dbus-python36 py36-cython py36-nose py36-setuptools swig-python py36-ipython py36-matplotlib py36-pandas py36-pyfftw py35-docopt py36-pathlib2 py36-apipkg py36-pip py36-numpy py36-scipy py36-mpi4py mpich-default py36-bottleneck py36-numexpr py36-scipy py36-tables
port variants py36-h5py
port rev-upgrade
port select --set python python34
port select --set cython cython36
port select --set mpi mpich-mp-fortran
port select --set pip pip36
export PATH=/opt/local/bin:/opt/local/sbin:$PATH
export CFLAGS="-I/opt/local/include/mpich-mp -I/opt/local/include -L/opt/local/lib -L/opt/local/lib/mpich-mp"
export LD_LIBRARY_PATH=/opt/local/lib:/usr:/opt/local/lib/mpich-mp
export FFTW_PATH=/opt/local
export MPI_PATH=/opt/local
export PYTHONPATH=~jnm/dedalus
export HDF5_MPI="ON"
pip install --no-binary=h5py h5py>=2.7.1
cd ~/
rm -rf dedalus
cd dedalus
pip install -r requirements.txt
python3 setup.py build_ext --inplace
cd ~/
rm -rf dedalus
cd dedalus
pip install -r requirements.txt
python3 setup.py build_ext --inplace