From 5c322bcf9a01c537b1a11a616d9aed79c66a98e7 Mon Sep 17 00:00:00 2001 From: Guangguan Wang Date: Mon, 13 Jul 2026 14:48:59 +0800 Subject: [PATCH] contrib: exclude rdma-core libs from wheel packaging Add libibverbs and libmlx5 to AUDITWHEEL_EXCLUDES so auditwheel does not bundle host RDMA userspace libraries into NIXL wheels. This avoids loading a wheel-private libibverbs alongside the system libibverbs used by other RDMA consumers such as NCCL, and lets UCX resolve rdma-core providers from the host environment. Signed-off-by: Guangguan Wang --- contrib/build-wheel.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/build-wheel.sh b/contrib/build-wheel.sh index d765bf9ac3..f5bcff7bec 100755 --- a/contrib/build-wheel.sh +++ b/contrib/build-wheel.sh @@ -97,7 +97,7 @@ if [ "$CUDA_MAJOR" -ne 12 ] && [ "$CUDA_MAJOR" -ne 13 ]; then echo "Invalid CUDA_MAJOR: '$CUDA_MAJOR'" exit 1 fi -AUDITWHEEL_EXCLUDES="--exclude libcuda* --exclude libcufile* --exclude libssl* --exclude libcrypto* --exclude libefa* --exclude libhwloc* --exclude libfabric* --exclude libtorch* --exclude libc10* --exclude libdoca* --exclude libred_client* --exclude libred_async* --exclude liblz4*" +AUDITWHEEL_EXCLUDES="--exclude libcuda* --exclude libcufile* --exclude libssl* --exclude libcrypto* --exclude libefa* --exclude libhwloc* --exclude libfabric* --exclude libtorch* --exclude libc10* --exclude libdoca* --exclude libred_client* --exclude libred_async* --exclude liblz4* --exclude libibverbs* --exclude libmlx5*" PKG_NAME="nixl-cu${CUDA_MAJOR}" CU_TAG="cu$(nvcc --version | grep -Eo 'release [0-9]+\.[0-9]+' | cut -d' ' -f2 | tr -d .)"