Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 24 additions & 4 deletions n/numactl/numactl_ubi_9.3.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -33,18 +33,24 @@ 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
echo "------------------$PACKAGE_NAME: Build failed ------------------"
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
Expand All @@ -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
Expand Down
Loading