@@ -111,9 +111,10 @@ function build_zstd {
111
111
function build_netcdf {
112
112
if [ -e netcdf-stamp ]; then return ; fi
113
113
# $fetch_unpack https://downloads.unidata.ucar.edu/netcdf-c/${NETCDF_VERSION}/netcdf-c-${NETCDF_VERSION}.tar.gz
114
- git clone https://github.com/DennisHeimbigner/netcdf-c netcdf-c-${NETCDF_VERSION}
114
+ # this has fix for setting CURL path to find SSL certificates
115
+ git clone https://github.com/Unidata/netcdf-c netcdf-c-${NETCDF_VERSION}
115
116
cd netcdf-c-${NETCDF_VERSION}
116
- git checkout verifyhost.dmh
117
+ git checkout 43b03a4da72dfaaa004adb1a288111c06eaa60ae
117
118
autoreconf -i
118
119
cd ..
119
120
if [ -n " $IS_MACOS " ]; then
@@ -281,16 +282,7 @@ function run_tests {
281
282
cp ../netcdf4-python/test/* .
282
283
python run_all.py
283
284
# add test for netcdf4-python issue #1246 (opendap with ssl)
284
- export CURLOPT_VERBOSE=1
285
+ # export CURLOPT_VERBOSE=1
285
286
URL=' https://icdc.cen.uni-hamburg.de/thredds/dodsC/ftpthredds/hamtide/m2.hamtide11a.nc'
286
- # if [ -z "$IS_MACOS" ]; then # only needed for Linux
287
- # # these should work, but don't
288
- # #echo "HTTP.SSL.CAINFO=/etc/ssl/certs/ca-certificates.crt" > $HOME/.ncrc
289
- # #export CURL_CA_BUNDLE=/etc/ssl/certs/ca-certificates.crt
290
- # #echo "cacert=/etc/ssl/certs/ca-certificates.crt" > $HOME/.curlrc
291
- # # this works
292
- # mkdir -p /etc/pki/tls/certs
293
- # ln -s /etc/ssl/certs/ca-certificates.crt /etc/pki/tls/certs/ca-bundle.crt
294
- # fi
295
287
python -c " from netCDF4 import Dataset; nc=Dataset(\" ${URL} \" ); print(nc)"
296
288
}
0 commit comments