mirror of
https://github.com/ml-explore/mlx.git
synced 2025-12-12 15:29:01 +08:00
Some checks failed
Nightly Build / build_linux_release (3.10) (push) Has been cancelled
Nightly Build / build_linux_release (3.14) (push) Has been cancelled
Nightly Build / build_linux_with_tests (3.10, ubuntu-22.04) (push) Has been cancelled
Nightly Build / build_linux_with_tests (3.10, ubuntu-22.04-arm) (push) Has been cancelled
Nightly Build / build_linux_with_tests (3.11, ubuntu-22.04) (push) Has been cancelled
Nightly Build / build_linux_with_tests (3.11, ubuntu-22.04-arm) (push) Has been cancelled
Nightly Build / build_linux_with_tests (3.12, ubuntu-22.04) (push) Has been cancelled
Nightly Build / build_linux_with_tests (3.12, ubuntu-22.04-arm) (push) Has been cancelled
Nightly Build / build_linux_with_tests (3.13, ubuntu-22.04) (push) Has been cancelled
Nightly Build / build_linux_with_tests (3.13, ubuntu-22.04-arm) (push) Has been cancelled
Nightly Build / build_linux_with_tests (3.14, ubuntu-22.04) (push) Has been cancelled
Nightly Build / build_linux_with_tests (3.14, ubuntu-22.04-arm) (push) Has been cancelled
Nightly Build / build_mac_release (3.10) (push) Has been cancelled
Nightly Build / build_mac_release (3.13) (push) Has been cancelled
Nightly Build / build_cuda_with_tests (push) Has been cancelled
Nightly Build / build_cuda_release (push) Has been cancelled
Nightly Build / Linux Fedora CPP Build (aarch64) (push) Has been cancelled
Nightly Build / Linux Fedora CPP Build (x86_64) (push) Has been cancelled
* try linux on arm * ssh * fix
21 lines
513 B
Bash
21 lines
513 B
Bash
#!/bin/bash
|
|
|
|
auditwheel repair dist/* \
|
|
--plat manylinux_2_35_${1} \
|
|
--only-plat \
|
|
--exclude libmlx* \
|
|
-w wheel_tmp
|
|
|
|
mkdir wheelhouse
|
|
cd wheel_tmp
|
|
repaired_wheel=$(find . -name "*.whl" -print -quit)
|
|
unzip -q "${repaired_wheel}"
|
|
rm "${repaired_wheel}"
|
|
core_so=$(find mlx -name "core*.so" -print -quit)
|
|
rpath="\$ORIGIN/lib"
|
|
patchelf --force-rpath --set-rpath "$rpath" "$core_so"
|
|
python ../python/scripts/repair_record.py ${core_so}
|
|
|
|
# Re-zip the repaired wheel
|
|
zip -r -q "../wheelhouse/${repaired_wheel}" .
|