File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed
Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -249,13 +249,14 @@ python -m build --wheel . \
249249popd
250250
251251echo " === (${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
257262fi
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/
You can’t perform that action at this time.
0 commit comments