Skip to content

Commit 2cb482a

Browse files
committed
misc
1 parent 1553692 commit 2cb482a

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/build_wheels.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ jobs:
7171
env:
7272
CIBW_ARCHS: ${{ matrix.cibw_archs }}
7373
CIBW_BUILD: ${{ matrix.cibw_build }}
74-
CIBW_BEFORE_ALL: mkdir openexr/build && cd openexr/build && cmake .. -DCMAKE_INSTALL_PREFIX=../../openexr-install && make all install
74+
CIBW_BEFORE_ALL: mkdir openexr\build && cd openexr\build && cmake .. -DCMAKE_INSTALL_PREFIX=..\..\openexr-install && make && make install
7575
CIBW_ENVIRONMENT: LD_LIBRARY_PATH=${GITHUB_WORKSPACE}/openexr-install/lib64:${GITHUB_WORKSPACE}/openexr-install/lib
7676

7777
- uses: actions/upload-artifact@v3
@@ -147,7 +147,10 @@ jobs:
147147
CIBW_ARCHS: ${{ matrix.cibw_archs }}
148148
CIBW_BUILD: ${{ matrix.cibw_build }}
149149
CIBW_BEFORE_ALL: mkdir openexr/build && cd openexr/build && cmake .. -DCMAKE_INSTALL_PREFIX=../../openexr-install && make all install
150-
CIBW_ENVIRONMENT: LD_LIBRARY_PATH=${GITHUB_WORKSPACE}/openexr-install/lib64:${GITHUB_WORKSPACE}/openexr-install/lib
150+
CIBW_ENVIRONMENT: REPAIR_LIBRARY_PATH=${GITHUB_WORKSPACE}/openexr-install/lib64:${GITHUB_WORKSPACE}/openexr-install/lib
151+
CIBW_REPAIR_WHEEL_COMMAND_MACOS: >
152+
# https://cibuildwheel.readthedocs.io/en/stable/faq/#macos-passing-dyld_library_path-to-delocate
153+
DYLD_LIBRARY_PATH=$REPAIR_LIBRARY_PATH delocate-wheel --require-archs {delocate_archs} -w {dest_dir} -v {wheel}
151154
152155
- uses: actions/upload-artifact@v3
153156
with:

0 commit comments

Comments
 (0)