Skip to content

Commit 2afb78d

Browse files
committed
Pass DYLD_LIBRARY_PATH to delocate
1 parent 8b0ade0 commit 2afb78d

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.github/scripts/python_wheels/cibw_before_all.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ elif [ "$(uname)" == "Darwin" ]; then
3737

3838
./b2 install --prefix=${BOOST_PREFIX} --with=all -d0 \
3939
cxxflags="-mmacosx-version-min=${MACOSX_DEPLOYMENT_TARGET}" \
40-
linkflags="-mmacosx-version-min=${MACOSX_DEPLOYMENT_TARGET} -Wl,-rpath,${BOOST_LIBRARYDIR}"
40+
linkflags="-mmacosx-version-min=${MACOSX_DEPLOYMENT_TARGET}"
4141
fi
4242
cd ..
4343

@@ -48,7 +48,7 @@ export BOOST_LIBRARYDIR="${BOOST_PREFIX}/lib"
4848

4949
# Ensure runtime linker can find Boost libraries
5050
export LD_LIBRARY_PATH="${BOOST_LIBRARYDIR}:$LD_LIBRARY_PATH" # For Linux
51-
export DYLD_LIBRARY_PATH="${BOOST_LIBRARYDIR}:$DYLD_LIBRARY_PATH" # For macOS
51+
export REPAIR_LIBRARY_PATH="${BOOST_LIBRARYDIR}:$DYLD_LIBRARY_PATH" # For macOS
5252

5353
$(which $PYTHON) -m pip install -r $PROJECT_DIR/python/dev_requirements.txt
5454

.github/workflows/build-cibw.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ jobs:
147147
CIBW_ARCHS: all
148148
CIBW_ENVIRONMENT_PASS_LINUX: DEVELOP TIMESTAMP
149149
MACOSX_DEPLOYMENT_TARGET: 10.15
150+
CIBW_REPAIR_WHEEL_COMMAND_MACOS: DYLD_LIBRARY_PATH=$REPAIR_LIBRARY_PATH delocate-wheel --require-archs {delocate_archs} -w {dest_dir} -v {wheel}
150151

151152
# Use build instead of pip wheel to build the wheels. This is recommended by PyPA.
152153
# See https://cibuildwheel.pypa.io/en/stable/options/#build-frontend.

0 commit comments

Comments
 (0)