File tree Expand file tree Collapse file tree 3 files changed +13
-38
lines changed
Expand file tree Collapse file tree 3 files changed +13
-38
lines changed Original file line number Diff line number Diff line change @@ -61,12 +61,18 @@ chmod 777 $(pwd)/tools
6161mkdir -p dist
6262DOCKER_ARGS=" -v $( pwd) /dist:/work/dist/ -v ${script_dir} /..:/ITKPythonPackage -v $( pwd) /tools:/tools"
6363DOCKER_ARGS+=" -e MANYLINUX_VERSION"
64+ DOCKER_ARGS+=" -e LD_LIBRARY_PATH"
6465# Mount any shared libraries
6566if [[ -n ${LD_LIBRARY_PATH} ]]; then
6667 for libpath in ${LD_LIBRARY_PATH//:/ } ; do
67- DOCKER_ARGS+=" -v ${libpath} :/usr/lib64/$( basename -- ${libpath} ) "
68+ DOCKER_LIBRARY_PATH=" /usr/lib64/$( basename -- ${libpath} ) "
69+ DOCKER_ARGS+=" -v ${libpath} :${DOCKER_LIBRARY_PATH} "
70+ if test -d ${libpath} ; then
71+ DOCKER_LD_LIBRARY_PATH+=" ${DOCKER_LIBRARY_PATH} :${DOCKER_LD_LIBRARY_PATH} "
72+ fi
6873 done
6974fi
75+ export LD_LIBRARY_PATH=" ${DOCKER_LD_LIBRARY_PATH} "
7076
7177if [[ " ${TARGET_ARCH} " = " aarch64" ]]; then
7278 echo " Install aarch64 architecture emulation tools to perform build for ARM platform"
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -122,13 +122,14 @@ for PYBIN in "${PYBINARIES[@]}"; do
122122 || exit 1
123123done
124124
125- # Make sure auditwheel is installed for this python exe before importing
126- # it in auditwheel_whitelist_monkeypatch.py
125+ # Convert list of excluded libs in --exclude_libs to auditwheel --exclude options
126+ if test -n " $EXCLUDE_LIBS " ; then
127+ AUDITWHEEL_EXCLUDE_ARGS=" --exclude ${EXCLUDE_LIBS// ;/ --exclude } "
128+ fi
129+
127130sudo ${Python3_EXECUTABLE} -m pip install auditwheel
128131for whl in dist/* linux* $( uname -m) .whl; do
129- # Repair wheel using monkey patch to exclude shared libraries provided in whitelist
130- ${Python3_EXECUTABLE} " ${script_dir} /auditwheel_whitelist_monkeypatch.py" \
131- repair ${whl} -w /work/dist/ --whitelist " ${EXCLUDE_LIBS} "
132+ auditwheel repair ${whl} -w /work/dist/ ${AUDITWHEEL_EXCLUDE_ARGS}
132133 rm ${whl}
133134done
134135
You can’t perform that action at this time.
0 commit comments