Skip to content

Commit

Permalink
Update ci/hdf5-build.sh.
Browse files Browse the repository at this point in the history
Copies the version from libsonata to MorphIO.
  • Loading branch information
1uc committed Sep 4, 2024
1 parent 624aa8b commit ede7e01
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ci/hdf5-build.sh
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
#!/bin/bash
set -e -x

: "${UNIXY_HDF5_VERSION:=1.14.3}"
: "${CIBW_ARCHS_MACOS:=$(uname -m)}"

export INPUT=$(cd $(dirname "$1") && pwd -P)/$(basename "$1")
export OUTPUT="$INPUT/install-$CIBW_ARCHS_MACOS"

: "${UNIXY_HDF5_VERSION:=1.14.3}"

function download_unpack_hdf5 {
pushd "$INPUT"
local name=CMake-hdf5-$UNIXY_HDF5_VERSION.tar.gz
if [[ ! -e $name ]]; then
echo "Downloading & unpacking HDF5 ${UNIXY_HDF5_VERSION}"
curl -fsSLO "https://www.hdfgroup.org/ftp/HDF5/releases/hdf5-${UNIXY_HDF5_VERSION%.*}/hdf5-$UNIXY_HDF5_VERSION/src/$name"
curl -fsSLO "https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-${UNIXY_HDF5_VERSION%.*}/hdf5-$UNIXY_HDF5_VERSION/src/$name"
fi
tar xzf "$name"
popd
Expand Down

0 comments on commit ede7e01

Please sign in to comment.