Skip to content

Commit

Permalink
fix(install_hdf5): handle patch version in tar download
Browse files Browse the repository at this point in the history
  • Loading branch information
ljgray committed Sep 24, 2024
1 parent 49441db commit 32a4846
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/install_hdf5.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
HDF5_VERSION=$1
HDF5_DISTRIBUTION=$1
# Extract the patch number
IFS='-' read -ra ADDR <<< "$HDF5_DISTRIBUTION"

# Download and install HDF5 $HDF5_VERSION from source for building wheels
curl https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-${HDF5_VERSION%.*}/hdf5-$HDF5_VERSION/src/hdf5-$HDF5_VERSION.tar.gz -O -s
tar -xzf hdf5-$HDF5_VERSION.tar.gz
cd hdf5-$HDF5_VERSION
HDF5_VERSION=${ADDR[0]}

# Download and install HDF5 $HDF5_DISTRIBUTION from source for building wheels
curl https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-${HDF5_VERSION%.*}/hdf5-$HDF5_VERSION/src/hdf5-$HDF5_DISTRIBUTION.tar.gz -O -s
tar -xzf hdf5-$HDF5_DISTRIBUTION.tar.gz
cd hdf5-$HDF5_DISTRIBUTION
./configure --prefix=/usr/local
make -j 2
make install
Expand Down

0 comments on commit 32a4846

Please sign in to comment.