diff --git a/tools/pylib/_boutcore_build/build-wheels.sh b/tools/pylib/_boutcore_build/build-wheels.sh
index efdd05b465ae442ea60894c1af088b0cf2db2462..f1e6381b292fad25e3b189eec5a997afa9de1e36 100644
--- a/tools/pylib/_boutcore_build/build-wheels.sh
+++ b/tools/pylib/_boutcore_build/build-wheels.sh
@@ -1,11 +1,10 @@
 set -ex
 yum -y install fftw-devel netcdf-cxx-devel
-yum -y install openmpi3-devel || yum -y install openmpi-1.10-devel
-if ! module load mpi ; then
-    . /etc/profile
-    module load mpi
-fi
-./configure --enable-shared
+curl https://github.com/dschwoerer/multimpi/releases/download/v0.1/multimpi-0.1.tar.xz > multimpi.tar.xz
+tar -xvf multimpi.tar.xz -C /usr/local
+MPIPATH=/usr/local/multimpi
+export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$MPIPATH/lib/
+./configure --enable-shared  CC=$MPIPATH/bin/mpicc CXX=$MPIPATH/bin/mpic++
 make -j 4
 cd tools/pylib/_boutcore_build/
 
@@ -50,9 +49,21 @@ for PYBIN in /opt/python/cp3*/bin/; do
     fi
 done
 
-mkdir -p wheelhouse
-rm -f wheelhouse/*whl
-cp /io/wheelhouse/*whl wheelhouse/
+yum -y install zip
+
+mkdir -p tmp
+cd tmp/
+for whl in $(ls /io/wheelhouse/) ; do
+    rm * -rf
+    unzip /io/wheelhouse/$whl
+    find
+    cp /shared/multimpi/lib/*so boutcore.libs/
+    zip ../wheelhouse/$whl * */*
+    ls -l ../wheelhouse/
+done
+cd ..
+
+
 $PYBIN/pip install twine --upgrade
 ls -l $PYBIN
 $PYBIN/python -m twine upload --repository testpypi wheelhouse/*.whl