Skip to content
This repository was archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
Updated versioning of dependency python packages and got rid of some …
Browse files Browse the repository at this point in the history
…cruft in the hdf5 build script
  • Loading branch information
MintoDA1 authored and MintoDA1 committed Oct 2, 2023
1 parent f40d02f commit f55fa15
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 22 deletions.
20 changes: 0 additions & 20 deletions buildscripts/build_hdf5.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
# If not, see: https://www.gnu.org/licenses.

HDF5_VER="1_14_2"
PLUGIN_VER="1.14.0"
ZLIB_VER="1.3"

SCRIPT_DIR=$(realpath $(dirname $0))
Expand Down Expand Up @@ -48,13 +47,6 @@ if [[ (-d ${DEPENDENCY_DIR}/hdfsrc) && (-f ${DEPENDENCY_DIR}/hdfsrc/README.md) ]
fi
fi

if [ ! -d ${DEPENDENCY_DIR}/hdfsrc ]; then
curl -s -L https://github.com/HDFGroup/hdf5/releases/download/hdf5-${HDF5_VER}/hdf5-${HDF5_VER}.tar.gz | tar xvz -C ${DEPENDENCY_DIR}
ZLIB_TGZ_NAME="zlib-${ZLIB_VER}.tar.gz"
ZLIB_TGZ_ORIGPATH="https://github.com/madler/zlib/releases/download/v${ZLIB_VER}/"
curl -L "https://github.com/HDFGroup/hdf5_plugins/archive/refs/tags/${PLUGIN_VER}.tar.gz" -o hdfsrc/hdf5_plugins.tar.gz
fi

printf "\n"
printf "*********************************************************\n"
printf "* BUILDING HDF5 LIBRARY *\n"
Expand Down Expand Up @@ -105,18 +97,6 @@ else
sudo cmake --install build
fi

# tar xvzf hdf5_plugins.tar.gz
# PLUGIN_SOURCE=hdf5_plugins-${PLUGIN_VER}

# BUILD_OPTIONS="-DTGZPATH:PATH=${PLUGIN_SOURCE}/libs -DH5PL_ALLOW_EXTERNAL_SUPPORT:STRING=\"TGZ\""
# cmake -B ${PLUGIN_SOURCE}/build -C ${PLUGIN_SOURCE}/config/cmake/cacheinit.cmake -DCMAKE_BUILD_TYPE:STRING=Release ${BUILD_OPTIONS} -G Ninja ${PLUGIN_SOURCE}
# cmake --build ${PLUGIN_SOURCE}/build -j${NPROC} --config Release
# if [ -w ${PREFIX} ]; then
# cmake --install ${PLUGIN_SOURCE}/build
# else
# sudo cmake --install ${PLUGIN_SOURCE}/build
# fi

if [ $? -ne 0 ]; then
printf "hdf5 could not be compiled.\n"
exit 1
Expand Down
5 changes: 3 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,9 @@ dependencies = [
'dask>=2022.1',
'distributed>=2022.1',
'bottleneck>=1.3.5',
'h5netcdf>=1.0.2',
'netcdf4>=1.6.2',
'h5netcdf>=1.2.0',
'h5py>=3.9.0',
'netcdf4>=1.6.4',
'matplotlib>=3.7.1',
'astropy>=5.1',
'astroquery>=0.4.6',
Expand Down

0 comments on commit f55fa15

Please sign in to comment.