From 46d3b7bc3348fd87c2b1eb8f4a6b133a04a4f5db Mon Sep 17 00:00:00 2001 From: Kyle Edwards Date: Tue, 12 Mar 2024 18:34:46 -0400 Subject: [PATCH] Make libnuma optional (#203) libucx 1.15 made libnuma optional. Only include libnuma in the wheel if our libucx depends on it. Authors: - Kyle Edwards (https://github.com/KyleFromNVIDIA) Approvers: - Peter Andreas Entschev (https://github.com/pentschev) - Bradley Dice (https://github.com/bdice) - https://github.com/jakirkham - Jake Awe (https://github.com/AyodeAwe) URL: https://github.com/rapidsai/ucxx/pull/203 --- ci/build_wheel.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ci/build_wheel.sh b/ci/build_wheel.sh index 7eeee238..c1e329b6 100755 --- a/ci/build_wheel.sh +++ b/ci/build_wheel.sh @@ -105,7 +105,9 @@ elif [[ ${package_name} == "ucxx" ]]; then patchelf --replace-needed libuct.so.0 $LIBUCT $f patchelf --replace-needed libucs.so.0 $LIBUCS $f patchelf --replace-needed libucm.so.0 $LIBUCM $f - patchelf --replace-needed libnuma.so.1 $LIBNUMA $f + if [[ -n "$LIBNUMA" ]]; then + patchelf --replace-needed libnuma.so.1 $LIBNUMA $f + fi patchelf --add-rpath '$ORIGIN/..' $f fi done