Skip to content

Commit 368b2d0

Browse files
committed
Try using delocate-wheel to add missing bundled shared dependencies
1 parent 7d1fea3 commit 368b2d0

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

ci/scripts/python_wheel_macos_build.sh

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -249,13 +249,14 @@ python -m build --wheel . \
249249
popd
250250

251251
echo "=== (${PYTHON_VERSION}) Show dynamic libraries the wheel depend on ==="
252-
deps=$(delocate-listdeps ${source_dir}/python/dist/*.whl)
252+
delocate-listdeps ${source_dir}/python/dist/*.whl
253253

254-
if echo $deps | grep -v "^pyarrow/lib\(arrow\|parquet\)"; then
254+
echo "=== (${PYTHON_VERSION}) Bundle shared libraries into wheel ==="
255+
delocate-wheel -w ${source_dir}/python/repaired_wheels -v ${source_dir}/python/dist/*.whl
256+
257+
echo "=== (${PYTHON_VERSION}) Validate there are no non-bundled shared dependencies ==="
258+
deps=$(delocate-listdeps ${source_dir}/python/repaired_wheels/*.whl)
259+
if echo $deps | grep -v "^pyarrow/lib\(arrow\|gandiva\|parquet\)"; then
255260
echo "There are non-bundled shared library dependencies."
256261
exit 1
257262
fi
258-
259-
# Move the verified wheels
260-
mkdir -p ${source_dir}/python/repaired_wheels
261-
mv ${source_dir}/python/dist/*.whl ${source_dir}/python/repaired_wheels/

0 commit comments

Comments
 (0)