File tree Expand file tree Collapse file tree 2 files changed +11
-5
lines changed Expand file tree Collapse file tree 2 files changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -102,8 +102,8 @@ jobs:
102
102
clean_code $REPO_DIR $BUILD_COMMIT
103
103
echo "------- BUILD WHEEL --------"
104
104
build_wheel $REPO_DIR $PLAT
105
- echo "------- INSTALL_RUN --------"
106
- install_run $PLAT
105
+ # echo "------- INSTALL_RUN --------"
106
+ # install_run $PLAT
107
107
- name : Upload wheels to release
108
108
uses : svenstaro/upload-release-action@v2
109
109
if : github.event_name == 'create'
Original file line number Diff line number Diff line change @@ -22,8 +22,12 @@ export BLOSC_VERSION="1.21.1"
22
22
# custom version that sets NETCDF_PLUGIN_DIR env var
23
23
function build_wheel {
24
24
# Set default building method to pip
25
- export NETCDF_PLUGIN_DIR=${BUILD_PREFIX} /lib/netcdf-plugins
26
- wrap_wheel_builder build_pip_wheel $@
25
+ if [[ ! -z " IS_OSX" && " $PLAT " = " arm64" ]] && [[ " $CROSS_COMPILING " = " 1" ]]; then
26
+ wrap_wheel_builder build_pip_wheel $@
27
+ else:
28
+ export NETCDF_PLUGIN_DIR=${BUILD_PREFIX} /lib/netcdf-plugins
29
+ wrap_wheel_builder build_pip_wheel $@
30
+ fi
27
31
}
28
32
29
33
# add --verbose to pip
@@ -108,7 +112,6 @@ function build_netcdf {
108
112
# && ls -l $HDF5_PLUGIN_PATH )
109
113
# autotools build
110
114
if [[ ! -z " IS_OSX" && " $PLAT " = " arm64" ]] && [[ " $CROSS_COMPILING " = " 1" ]]; then
111
- unset NETCDF_PLUGIN_DIR
112
115
(cd netcdf-c-${NETCDF_VERSION} \
113
116
&& ./configure --prefix=$BUILD_PREFIX --enable-netcdf-4 --enable-shared --enable-dap \
114
117
&& make -j4 \
@@ -252,6 +255,9 @@ function run_tests {
252
255
ls -l /usr/local/lib
253
256
which python
254
257
cp ../netcdf4-python/test/* .
258
+ if [[ ! -z " IS_OSX" && " $PLAT " = " arm64" ]] && [[ " $CROSS_COMPILING " = " 1" ]]; then
259
+ export NO_PLUGINS=1 # plugins not installed for arm64 cross compile
260
+ fi
255
261
python run_all.py
256
262
}
257
263
You can’t perform that action at this time.
0 commit comments