Skip to content

Commit

Permalink
Update change to runpaths
Browse files Browse the repository at this point in the history
  • Loading branch information
damskii9992 committed Jan 8, 2025
1 parent ae418ec commit 5faf234
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/Build-multi-OS.yml
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,12 @@ jobs:
- name: Ammend shared libraries runpaths
if: ${{ runner.os == 'Linux' }}
working-directory: build-imagingsuite/Release/lib
working-directory: build-imagingsuite/Release
shell: bash
run: patchelf --set-rpath '$ORIGIN' *.so*
run: |
patchelf --set-rpath '$ORIGIN' lib/*.so*
patchelf --set-rpath '$ORIGIN:$ORIGIN/../../lib' PlugIns/BackProjectors/*.so*
patchelf --set-rpath '$ORIGIN:$ORIGIN/../../lib' PlugIns/Preprocessors/*.so*
- name: Test
id: tests
Expand Down
13 changes: 7 additions & 6 deletions .github/workflows/Build-wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -165,12 +165,6 @@ jobs:
${QTPATH}/bin/macdeployqt imageviewer.app
fi
- name: Ammend shared libraries runpaths
if: ${{ runner.os == 'Linux' }}
working-directory: build-imagingsuite/Release/lib
shell: bash
run: patchelf --set-rpath '$ORIGIN' *.so*

- name: Copy bindings and shared libraries to package folder
shell: bash
working-directory: build-imagingsuite
Expand All @@ -188,6 +182,13 @@ jobs:
cp *.so ../../../imagingsuite/package/pymuhrec
fi
- name: Ammend shared libraries runpaths
if: ${{ runner.os == 'Linux' }}
working-directory: imagingsuite/package/pymuhrec
shell: bash
run: |
patchelf --set-rpath '$ORIGIN' *.so*
- name: Build wheels
shell: bash
working-directory: imagingsuite/package
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ cmake_install.cmake
*.synctex.gz
.vscode*
package/pymuhrec/*.dll
package/pymuhrec/*.so
package/pymuhrec/*.so*
package/pymuhrec/*.dylib
package/pymuhrec/*.pyd
package/pymuhrec.egg-info
Expand Down

0 comments on commit 5faf234

Please sign in to comment.