Skip to content

Commit 7e65618

Browse files
committed
fix typo
1 parent 18e8778 commit 7e65618

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

config.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,22 +108,25 @@ function build_zstd {
108108
function build_netcdf {
109109
if [ -e netcdf-stamp ]; then return; fi
110110
fetch_unpack https://downloads.unidata.ucar.edu/netcdf-c/${NETCDF_VERSION}/netcdf-c-${NETCDF_VERSION}.tar.gz
111-
if [[ -n "IS_OSX" ]]; then
111+
if [ -n "$IS_MACOS" ]; then
112112
if [[ "$PLAT" = "arm64" ]] && [[ "$CROSS_COMPILING" = "1" ]]; then
113+
# no plugins installed
113114
(cd netcdf-c-${NETCDF_VERSION} \
114115
&& ./configure --prefix=$BUILD_PREFIX --enable-netcdf-4 --enable-shared --enable-dap \
115116
&& make -j4 \
116117
&& make install )
117118
else
118-
# plugins installed
119+
# plugins installed
119120
(cd netcdf-c-${NETCDF_VERSION} \
120121
&& export HDF5_PLUGIN_PATH=$BUILD_PREFIX/lib/netcdf-plugins \
121122
&& ./configure --prefix=$BUILD_PREFIX --enable-netcdf-4 --enable-shared --enable-dap --with-plugin-dir=$HDF5_PLUGIN_PATH \
122123
&& make -j4 \
123124
&& make install )
124125
fi
125126
else
127+
# use cmake for version 4.9.0 since autotools doesn't work
126128
# CMakeLists.txt patch needed for NETCDF_VERSION 4.9.0
129+
# no plugins installed
127130
#(cd netcdf-c-${NETCDF_VERSION} \
128131
# && curl https://raw.githubusercontent.com/MacPython/netcdf4-python-wheels/master/CMakeLists.txt.patch -o CMakeLists.txt.patch \
129132
# && patch -p0 < CMakeLists.txt.patch \

0 commit comments

Comments
 (0)