Skip to content

Commit ce0f6e8

Browse files
author
Jeff Whitaker
committed
try setting cert path in .ncrc
1 parent f667e45 commit ce0f6e8

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

config.sh

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -157,13 +157,12 @@ function build_netcdf {
157157
# && ls -l $HDF5_PLUGIN_PATH )
158158
fi
159159
# test curl ssl support
160-
if [ ! -n "$IS_MACOS" ]; then
161-
URL='https://icdc.cen.uni-hamburg.de/thredds/dodsC/ftpthredds/hamtide/m2.hamtide11a.nc'
162-
export CURLOPT_VERBOSE=1
163-
export LD_LIBRARY_PATH="${BUILD_PREFIX}/lib:${LD_LIBRARY_PATH}"
164-
ls -l ${BUILD_PREFIX}/lib
165-
${BUILD_PREFIX}/bin/ncdump -h $URL
166-
fi
160+
#if [ ! -n "$IS_MACOS" ]; then
161+
# URL='https://icdc.cen.uni-hamburg.de/thredds/dodsC/ftpthredds/hamtide/m2.hamtide11a.nc'
162+
# export CURLOPT_VERBOSE=1
163+
# export LD_LIBRARY_PATH="${BUILD_PREFIX}/lib:${LD_LIBRARY_PATH}"
164+
# ${BUILD_PREFIX}/bin/ncdump -h $URL
165+
#fi
167166
touch netcdf-stamp
168167
}
169168

@@ -302,7 +301,8 @@ function run_tests {
302301
URL='https://icdc.cen.uni-hamburg.de/thredds/dodsC/ftpthredds/hamtide/m2.hamtide11a.nc'
303302
export CURLOPT_VERBOSE=1
304303
ls -l /etc/ssl
305-
export SSL_CERT_DIR=/etc/ssl/certs
304+
echo "HTTP.SSL.CAPATH=/etc/ssl/certs" > ~/.ncrc
305+
cat ~/.ncrc
306306
python -c "from netCDF4 import Dataset; nc=Dataset(\"${URL}\"); print(nc)"
307307
#fi
308308
}

0 commit comments

Comments
 (0)