Skip to content

Commit

Permalink
Implement suggestion to accomodate different version numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
jmwright committed Dec 23, 2024
1 parent 83d382c commit 09c92ee
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build-ocp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -725,8 +725,8 @@ jobs:
rm ${PKG_NAME}*.whl
if [[ "${{ matrix.use-vtk }}" == "ON" ]]; then
patchelf --add-rpath '$ORIGIN/../vtk.libs' ${PKG_NAME}-${{ env.OCCT }}/OCP/OCP.*.so
patchelf --add-rpath '$ORIGIN/../vtkmodules' ${PKG_NAME}-${{ env.OCCT }}/OCP/OCP.*.so
patchelf --add-rpath '$ORIGIN/../vtk.libs' ${PKG_NAME}-${{ env.OCCT }}*/OCP/OCP.*.so
patchelf --add-rpath '$ORIGIN/../vtkmodules' ${PKG_NAME}-${{ env.OCCT }}*/OCP/OCP.*.so
patchelf --add-rpath '$ORIGIN/../vtkmodules' ${PKG_NAME}-${{ env.OCCT }}/${PKG_NAME}.libs/*
fi
Expand All @@ -749,10 +749,10 @@ jobs:
cd pypi/dist
python -m wheel unpack ${PKG_NAME}*.whl
rm ${PKG_NAME}*.whl
install_name_tool -delete_rpath $(realpath ~/opt/local/occt-${{ env.OCCT }}/lib) ${PKG_NAME}-${{ env.OCCT }}/OCP/OCP.*.so
install_name_tool -delete_rpath $(realpath ~/opt/local/occt-${{ env.OCCT }}/lib) ${PKG_NAME}-${{ env.OCCT }}*/OCP/OCP.*.so
if [[ "${{ matrix.use-vtk }}" == "ON" ]]; then
install_name_tool -add_rpath @loader_path/../vtkmodules/.dylibs/ ${PKG_NAME}-${{ env.OCCT }}/OCP/OCP.*.so
install_name_tool -add_rpath @loader_path/../vtkmodules/.dylibs/ ${PKG_NAME}-${{ env.OCCT }}*/OCP/OCP.*.so
fi
python -m wheel pack ${PKG_NAME}*
Expand Down

0 comments on commit 09c92ee

Please sign in to comment.