Skip to content

Commit b611fcd

Browse files
author
Jeff Whitaker
committed
build netcdf-c main (certificate fix merged), v1.6.4rel netcdf4-python
1 parent 62b6db2 commit b611fcd

File tree

4 files changed

+7
-15
lines changed

4 files changed

+7
-15
lines changed

.github/workflows/build-wheels-linux.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
#MB_ML_VER: _2_28
5454
MB_ML_VER: 2014
5555
#BUILD_COMMIT: v1.6.3rel
56-
BUILD_COMMIT: issue1246
56+
BUILD_COMMIT: v1.6.4rel
5757
UNICODE_WIDTH: 32
5858
MB_PYTHON_VERSION: ${{ matrix.python-version }}
5959
TRAVIS_PYTHON_VERSION: ${{ matrix.python-version }}

.github/workflows/build-wheels-macosx.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
REPO_DIR: netcdf4-python
3333
PKG_NAME: netcdf4-python
3434
MB_ML_VER: 2014
35-
BUILD_COMMIT: v1.6.3rel
35+
BUILD_COMMIT: v1.6.4rel
3636
UNICODE_WIDTH: 32
3737
PLAT: arm64
3838
MB_PYTHON_VERSION: ${{ matrix.python-version }}

.github/workflows/build-wheels-macosx2.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
REPO_DIR: netcdf4-python
3333
PKG_NAME: netcdf4-python
3434
MB_ML_VER: 2014
35-
BUILD_COMMIT: v1.6.3rel
35+
BUILD_COMMIT: v1.6.4rel
3636
UNICODE_WIDTH: 32
3737
PLAT: x86_64
3838
MB_PYTHON_VERSION: ${{ matrix.python-version }}

config.sh

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,10 @@ function build_zstd {
111111
function build_netcdf {
112112
if [ -e netcdf-stamp ]; then return; fi
113113
#$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}
115116
cd netcdf-c-${NETCDF_VERSION}
116-
git checkout verifyhost.dmh
117+
git checkout 43b03a4da72dfaaa004adb1a288111c06eaa60ae
117118
autoreconf -i
118119
cd ..
119120
if [ -n "$IS_MACOS" ]; then
@@ -281,16 +282,7 @@ function run_tests {
281282
cp ../netcdf4-python/test/* .
282283
python run_all.py
283284
# add test for netcdf4-python issue #1246 (opendap with ssl)
284-
export CURLOPT_VERBOSE=1
285+
#export CURLOPT_VERBOSE=1
285286
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
295287
python -c "from netCDF4 import Dataset; nc=Dataset(\"${URL}\"); print(nc)"
296288
}

0 commit comments

Comments
 (0)