File tree Expand file tree Collapse file tree 1 file changed +8
-14
lines changed Expand file tree Collapse file tree 1 file changed +8
-14
lines changed Original file line number Diff line number Diff line change @@ -290,24 +290,18 @@ function pre_build {
290290
291291function run_tests {
292292 # Runs tests on installed distribution from an empty directory
293- pwd
294- echo $PATH
295- ls -l /usr/local/lib
296- which python
297293 cp ../netcdf4-python/test/* .
298294 python run_all.py
299295 # add test for netcdf4-python issue #1246 (opendap with ssl)
300- URL=' https://icdc.cen.uni-hamburg.de/thredds/dodsC/ftpthredds/hamtide/m2.hamtide11a.nc'
301296 export CURLOPT_VERBOSE=1
302- # these don't work
303- # echo "HTTP.SSL.CAINFO=/etc/ssl/certs/ca-certificates.crt" > .ncrc
304- # cat .ncrc
305- # /export CURL_CA_BUNDLE=/etc/ssl/certs/ca-certificates.crt
306- # echo "cacert=/etc/ssl/certs/ca-certificates.crt" > $HOME/.curlrc
307- # this works
308- if [ -z " $IS_MACOS " ]; then
309- mkdir -p /etc/pki/tls/certs
310- cp /etc/ssl/certs/ca-certificates.crt /etc/pki/tls/certs/ca-bundle.crt
297+ URL=' https://icdc.cen.uni-hamburg.de/thredds/dodsC/ftpthredds/hamtide/m2.hamtide11a.nc'
298+ if [ -z " $IS_MACOS " ]; then # only needed for Linux
299+ # these should work, but don't
300+ # echo "HTTP.SSL.CAINFO=/etc/ssl/certs/ca-certificates.crt" > .ncrc
301+ # export CURL_CA_BUNDLE=/etc/ssl/certs/ca-certificates.crt
302+ # this works
303+ mkdir -p /etc/pki/tls/certs
304+ ln /etc/ssl/certs/ca-certificates.crt /etc/pki/tls/certs/ca-bundle.crt
311305 fi
312306 python -c " from netCDF4 import Dataset; nc=Dataset(\" ${URL} \" ); print(nc)"
313307}
You can’t perform that action at this time.
0 commit comments