Skip to content

Commit 851c1d9

Browse files
committed
Ensure prebuilt wheel for mpi4py is not installed
1 parent fec404f commit 851c1d9

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

e3sm_supported_machines/templates/build.template

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@ set -e
88

99

1010
if [ "{{ build_mpi4py }}" == "True" ]; then
11-
MPICC="{{ mpicc }} -shared" python -m pip install --no-cache-dir "mpi4py=={{ mpi4py_version }}"
11+
MPICC="{{ mpicc }} -shared" python -m pip install \
12+
--no-cache-dir \
13+
--no-binary=mpi4py \
14+
--no-build-isolation \
15+
"mpi4py=={{ mpi4py_version }}"
1216
fi
1317

1418

@@ -44,4 +48,4 @@ if [ "{{ build_xesmf }}" == "True" ]; then
4448
python -m pip install --no-deps --no-build-isolation .
4549

4650
cd ${build_dir}
47-
fi
51+
fi

0 commit comments

Comments
 (0)