From d436fa3d699dceca4a95fbe5c70279fbd8235ac3 Mon Sep 17 00:00:00 2001 From: Nishidha Panpaliya Date: Fri, 8 May 2026 17:35:27 +0000 Subject: [PATCH 1/2] Fix numactl pip packaging issue --- n/numactl/numactl_ubi_9.3.sh | 26 +++++++++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-) diff --git a/n/numactl/numactl_ubi_9.3.sh b/n/numactl/numactl_ubi_9.3.sh index 12c7dc7a7b..fd8ef8486b 100644 --- a/n/numactl/numactl_ubi_9.3.sh +++ b/n/numactl/numactl_ubi_9.3.sh @@ -33,9 +33,14 @@ cd $PACKAGE_NAME # Checkout the specified version git checkout $PACKAGE_VERSION +# Create the local directory structure expected by pyproject.toml +mkdir -p $(pwd)/local/numactl +PREFIX=$(pwd)/local/numactl + # Prepare the build system ./autogen.sh -./configure +./configure --prefix=$PREFIX + # Compile the package if ! make; then @@ -43,8 +48,9 @@ if ! make; then exit 1 fi +echo "========================================= Installing now ==========================================" # Install the package -if ! make install; then +if ! make install PREFIX=${PREFIX}; then echo "------------------$PACKAGE_NAME: Install failed ------------------" exit 1 else @@ -54,7 +60,21 @@ fi wget https://raw.githubusercontent.com/ppc64le/build-scripts/refs/heads/master/n/numactl/pyproject.toml sed -i "s/{PACKAGE_VERSION}/$PACKAGE_VERSION/g" pyproject.toml -mkdir -p local +# ----------------------------------------------------------------------------- +# Library path setup +# ----------------------------------------------------------------------------- +export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${PREFIX}/lib64:${PREFIX}/lib + +# ----------------------------------------------------------------------------- +# Python package install (from original script) +# ----------------------------------------------------------------------------- +echo "------------------------Installing Python package-------------------" + +if ! pip install . --no-build-isolation ; then + echo "------------------$PACKAGE_NAME:Python_Install_fails-------------------------------------" + exit 1 +fi + # Run the unit test case if ! make -k check VERBOSE=1 TESTS='test/tbitmap'; then From 5a88903ed7fffd41bdeb249cc13bfbf73b5e257a Mon Sep 17 00:00:00 2001 From: Nishidha Panpaliya Date: Fri, 8 May 2026 17:57:00 +0000 Subject: [PATCH 2/2] Fixed PR check --- n/numactl/numactl_ubi_9.3.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/n/numactl/numactl_ubi_9.3.sh b/n/numactl/numactl_ubi_9.3.sh index fd8ef8486b..979ea5f91a 100644 --- a/n/numactl/numactl_ubi_9.3.sh +++ b/n/numactl/numactl_ubi_9.3.sh @@ -24,7 +24,7 @@ PACKAGE_URL=https://github.com/numactl/numactl PACKAGE_DIR=./numactl # Install dependencies -yum install -y git autoconf automake libtool wget +yum install -y git python-devel python-pip autoconf automake libtool wget # Clone the repository git clone $PACKAGE_URL $PACKAGE_NAME