Commit d200eae3 authored by Huihuo Zheng's avatar Huihuo Zheng
Browse files

fixed build_h5py.sh for adding hdf5dev.h

parent 82fb5b5a
#!/bin/sh
echo "Building h5py"
module load intelpython36
git clone https://github.com/h5py/h5py.git
echo "
#include "hdf5dev.h"
#ifndef H5E_BADATOM
#define H5E_BADATOM 1000
#endif
" >> $SDK_DIR/hdf5/include/hdf5.h
cd h5py
HDF5_MPI=ON CC=mpicc CXX=mpicxx python setup.py
HDF5_MPI=ON CC=mpicc CXX=mpicxx python setup.py build
HDF5_MPI=ON CC=mpicc CXX=mpicxx python setup.py install --prefix=$SDK_DIR/h5py
cd -
......@@ -15,3 +15,5 @@ export CC=mpicc
export CXX=mpicxx
cmkdir $SDK_DIR $HDF5_ROOT $HDF5_VOL_DIR $ABT_DIR $HDF5_VOL_DIR/lib $HDF5_VOL_DIR/include
export LD_LIBRARY_PATH=$ABT_DIR/lib:$LD_LIBRARY_PATH
version=$(python -c "import sys; print('%s.%s'%(sys.version_info[0], sys.version_info[1]))")
export PYTHONPATH=$SDK_DIR/h5py/lib/python$version/site-packages:$PYTHONPATH
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment