Skip to content

Commit

Permalink
fix mpi auditwheel replace_needed
Browse files Browse the repository at this point in the history
  • Loading branch information
hczhai committed Sep 14, 2023
1 parent 9aa02d8 commit f8880bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/actions/build-wheel/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ if [ "${PARALLEL}" = "mpi" ]; then
sed -i "s/name=\"block2\"/name=\"block2-mpi\"/g" setup.py
sed -i '/for soname, src_path/a \ if any(x in soname for x in ["libmpi", "libopen-pal", "libopen-rte"]): continue' \
$($(cat $(which auditwheel) | head -1 | awk -F'!' '{print $2}') -c "from auditwheel import repair;print(repair.__file__)")
sed -i '/for soname, src_path/a \ if "libmpi.so" in soname: patcher.replace_needed(fn, soname, "libmpi.so")' \
sed -i '/for soname, src_path/a \ if "libmpi.so" in soname: patcher.replace_needed(fn, (soname, "libmpi.so"))' \
$($(cat $(which auditwheel) | head -1 | awk -F'!' '{print $2}') -c "from auditwheel import repair;print(repair.__file__)")
sed -i '/for n in needed/a \ if "libmpi.so" in n: patcher.replace_needed(path, n, "libmpi.so")' \
sed -i '/for n in needed/a \ if "libmpi.so" in n: patcher.replace_needed(path, (n, "libmpi.so"))' \
$($(cat $(which auditwheel) | head -1 | awk -F'!' '{print $2}') -c "from auditwheel import repair;print(repair.__file__)")
fi

Expand Down

0 comments on commit f8880bf

Please sign in to comment.