1
0
mirror of https://github.com/TREX-CoE/trexio.git synced 2024-11-03 20:54:07 +01:00

Fix python-install

This commit is contained in:
Anthony Scemama 2023-06-02 15:14:29 +02:00
parent cb629ccb03
commit 6a8801bd9c

View File

@ -16,8 +16,10 @@ done
# check that both variables are set # check that both variables are set
if [[ -z ${H5_LDFLAGS_LOCAL} ]] || [[ -z ${H5_CFLAGS_LOCAL} ]]; then if [[ -z ${H5_LDFLAGS_LOCAL} ]] || [[ -z ${H5_CFLAGS_LOCAL} ]]; then
if [[ -z ${H5_LDFLAGS} ]] || [[ -z ${H5_CFLAGS} ]]; then if [[ -z ${H5_LDFLAGS} ]] || [[ -z ${H5_CFLAGS} ]]; then
which h5cc &> /dev/null # If pkg-config fails, try to locate hdf5 using h5cc
if [[ $? -eq 0 ]] ; then which h5cc &> /dev/null && HAS_H5CC=1
pkg-config --libs hdf5
if [[ $? -ne 0 && $HAS_H5CC == "1" ]] ; then
HDF5_tmp_flags=$(h5cc -showconfig \ HDF5_tmp_flags=$(h5cc -showconfig \
| grep 'FLAGS\|Extra libraries:' \ | grep 'FLAGS\|Extra libraries:' \
| awk -F: '{printf("%s "), $2}' ) | awk -F: '{printf("%s "), $2}' )