Commit 29b886ce authored by Huihuo Zheng's avatar Huihuo Zheng
Browse files

fixed build_h5py

parent 8c235098
......@@ -6,7 +6,7 @@ source build_argobots.sh
source build_async.sh
source build_passthru.sh
source build_h5py.sh
sed -e "s/PWD/$PWD/g" modulefiles/exahdf5.template > modulefiles/exahdf5
sed -e "s/PWD/$PWD/g" -e "s/H5PY_PATH/$H5PY_PATH/g" modulefiles/exahdf5.template > modulefiles/exahdf5
......@@ -7,7 +7,15 @@ echo "
#define H5E_BADATOM 1000
#endif
" >> $SDK_DIR/hdf5/include/hdf5.h
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
cd h5py
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 -
export H5PY_PATH=$(ls $SDK_DIR/h5py/lib/python$version/site-packages/*.egg)
......@@ -15,5 +15,3 @@ 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