@@ -20,20 +20,20 @@ export BZIP2_VERSION="1.0.8"
20
20
export BLOSC_VERSION=" 1.21.1"
21
21
22
22
# custom version that sets NETCDF_PLUGIN_DIR env var
23
- # function build_wheel {
24
- # # Set default building method to pip
25
- # export NETCDF_PLUGIN_DIR=${BUILD_PREFIX}/lib/netcdf-plugins
26
- # wrap_wheel_builder build_pip_wheel $@
27
- # }
23
+ function build_wheel {
24
+ # Set default building method to pip
25
+ export NETCDF_PLUGIN_DIR=${BUILD_PREFIX} /lib/netcdf-plugins
26
+ wrap_wheel_builder build_pip_wheel $@
27
+ }
28
28
29
29
# add --verbose to pip
30
- # function pip_opts {
31
- # if [ -n "$MANYLINUX_URL" ]; then
32
- # echo "--verbose --find-links $MANYLINUX_URL"
33
- # else
34
- # echo "--verbose"
35
- # fi
36
- # }
30
+ function pip_opts {
31
+ if [ -n " $MANYLINUX_URL " ]; then
32
+ echo " --verbose --find-links $MANYLINUX_URL "
33
+ else
34
+ echo " --verbose"
35
+ fi
36
+ }
37
37
38
38
function build_curl {
39
39
if [ -e curl-stamp ]; then return ; fi
@@ -107,19 +107,19 @@ function build_netcdf {
107
107
# && make install \
108
108
# && ls -l $HDF5_PLUGIN_PATH )
109
109
# autotools build
110
- # if [[ ! -z "IS_OSX" && "$PLAT" = "arm64" ]] && [[ "$CROSS_COMPILING" = "1" ]]; then
111
- # unset NETCDF_PLUGIN_DIR
110
+ if [[ ! -z " IS_OSX" && " $PLAT " = " arm64" ]] && [[ " $CROSS_COMPILING " = " 1" ]]; then
111
+ unset NETCDF_PLUGIN_DIR
112
112
(cd netcdf-c-${NETCDF_VERSION} \
113
113
&& ./configure --prefix=$BUILD_PREFIX --enable-netcdf-4 --enable-shared --enable-dap \
114
114
&& make -j4 \
115
115
&& make install )
116
- # else
117
- # (cd netcdf-c-${NETCDF_VERSION} \
118
- # && export HDF5_PLUGIN_PATH=$BUILD_PREFIX/lib/netcdf-plugins \
119
- # && ./configure --prefix=$BUILD_PREFIX --enable-netcdf-4 --enable-shared --enable-dap --with-plugin-dir=$HDF5_PLUGIN_PATH \
120
- # && make -j4 \
121
- # && make install )
122
- # fi
116
+ else
117
+ (cd netcdf-c-${NETCDF_VERSION} \
118
+ && export HDF5_PLUGIN_PATH=$BUILD_PREFIX /lib/netcdf-plugins \
119
+ && ./configure --prefix=$BUILD_PREFIX --enable-netcdf-4 --enable-shared --enable-dap --with-plugin-dir=$HDF5_PLUGIN_PATH \
120
+ && make -j4 \
121
+ && make install )
122
+ fi
123
123
touch netcdf-stamp
124
124
}
125
125
@@ -219,26 +219,22 @@ function build_blosc {
219
219
function build_libs {
220
220
echo " build_zlib"
221
221
build_zlib
222
- # echo "build_lzo"
223
- # build_lzo
224
- # echo "build_lzf"
225
- # build_lzf
226
- # echo "build_zstd"
227
- # build_zstd
228
- # echo "build_bzip2"
229
- # build_bzip2
230
- # echo "build_blosc"
231
- # build_blosc
232
- # libaec is a drop-in replacement for szip
222
+ echo " build_lzo"
223
+ build_lzo
224
+ echo " build_lzf"
225
+ build_lzf
226
+ echo " build_zstd"
227
+ build_zstd
228
+ echo " build_bzip2"
229
+ build_bzip2
230
+ echo " build_blosc"
231
+ build_blosc
233
232
echo " build_libaec"
234
233
build_libaec
235
234
echo " build_hdf5"
236
235
build_hdf5
237
236
echo " build_curl"
238
237
build_curl
239
- if [ -z " $IS_OSX " ] && [ $MB_ML_VER == " 1" ]; then
240
- export CFLAGS=" -std=gnu99 -Wl,-strip-all"
241
- fi
242
238
echo " build_netcdf"
243
239
build_netcdf
244
240
}
0 commit comments