File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -123,6 +123,12 @@ function build_netcdf {
123123 # use cmake
124124 # CMakeLists.txt patch needed for NETCDF_VERSION 4.9.0
125125 # no plugins installed
126+ if [[ ! -z " IS_OSX" && " $PLAT " = " arm64" ]] && [[ " $CROSS_COMPILING " = " 1" ]]; then
127+ (cd netcdf-c-${NETCDF_VERSION} \
128+ && ./configure --prefix=$BUILD_PREFIX --enable-netcdf-4 --enable-shared --enable-dap \
129+ && make -j4 \
130+ && make install )
131+ else
126132 (cd netcdf-c-${NETCDF_VERSION} \
127133 && curl https://raw.githubusercontent.com/MacPython/netcdf4-python-wheels/master/CMakeLists.txt.patch -o CMakeLists.txt.patch \
128134 && patch -p0 < CMakeLists.txt.patch \
@@ -131,6 +137,7 @@ function build_netcdf {
131137 && cmake ../ -DCMAKE_INSTALL_PREFIX=${BUILD_PREFIX} -DENABLE_NETCDF_4=ON -DENABLE_DAP=ON -DBUILD_SHARED_LIBS=ON -DENABLE_PLUGIN_INSTALL=NO \
132138 && make -j4 \
133139 && make install )
140+ fi
134141 # plugins installed
135142 # (cd netcdf-c-${NETCDF_VERSION} \
136143 # && curl https://raw.githubusercontent.com/MacPython/netcdf4-python-wheels/master/CMakeLists.txt.patch -o CMakeLists.txt.patch \
You can’t perform that action at this time.
0 commit comments