Set install rpath of python bindings with cmake (#2934)

This commit is contained in:
Cheng
2025-12-19 16:43:00 +09:00
committed by GitHub
parent 49f774904b
commit fc19a08caa
5 changed files with 11 additions and 57 deletions
@@ -22,7 +22,7 @@ runs:
python setup.py clean --all
MLX_BUILD_STAGE=2 python -m build -w
auditwheel repair dist/* \
auditwheel repair dist/mlx_cuda*.whl \
--plat manylinux_2_35_${{ inputs.arch }} \
--exclude libcublas* \
--exclude libcuda* \
@@ -24,13 +24,18 @@ runs:
pip install -e ".[dev]" -v
pip install typing_extensions
python setup.py generate_stubs
- name: Build Python package
shell: bash
run: |
pip install auditwheel patchelf build
python setup.py clean --all
MLX_BUILD_STAGE=1 python -m build -w
bash python/scripts/repair_linux.sh ${{ inputs.arch }}
auditwheel repair dist/mlx-*.whl \
--plat manylinux_2_35_${{ inputs.arch }} \
--exclude libmlx.so* \
--only-plat
- name: Build backend package
if: ${{ inputs.build-backend }}
shell: bash