Skip to content

Commit 76b58c5

Browse files
committed
update
1 parent ef7909f commit 76b58c5

File tree

1 file changed

+8
-14
lines changed

1 file changed

+8
-14
lines changed

config.sh

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -290,24 +290,18 @@ function pre_build {
290290

291291
function 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
}

0 commit comments

Comments
 (0)