From 543beb66fbe2eed53154bc4d36f9831e9a4ed65a Mon Sep 17 00:00:00 2001 From: shivansh-ibm Date: Sat, 8 Aug 2026 11:58:53 -0700 Subject: [PATCH] Added build script for numexpr==2.10.2 for ubi 10.1 --- n/numexpr/build_info.json | 8 +++- n/numexpr/numexpr_2.10.2_ubi_10.1.sh | 61 ++++++++++++++++++++++++++++ 2 files changed, 68 insertions(+), 1 deletion(-) create mode 100644 n/numexpr/numexpr_2.10.2_ubi_10.1.sh diff --git a/n/numexpr/build_info.json b/n/numexpr/build_info.json index 6d00614479..88bace5e21 100644 --- a/n/numexpr/build_info.json +++ b/n/numexpr/build_info.json @@ -1,5 +1,5 @@ { - "maintainer": "Varsha Kumar", + "maintainer": "shivansh-ibm", "package_name": "numexpr", "github_url": "https://github.com/pydata/numexpr.git", "version": "v2.14.1", @@ -19,6 +19,12 @@ "v2.8.7": { "build_script": "numexpr_2.8.7_ubi_9.3.sh" }, + "v2.10.2": { + "build_script": [ + "numexpr_2.10.2_ubi_9.3.sh", + "numexpr_2.10.2_ubi_10.1.sh" + ] + }, "*": { "build_script": "numexpr_2.10.2_ubi_9.3.sh" } diff --git a/n/numexpr/numexpr_2.10.2_ubi_10.1.sh b/n/numexpr/numexpr_2.10.2_ubi_10.1.sh new file mode 100644 index 0000000000..adb3e6753c --- /dev/null +++ b/n/numexpr/numexpr_2.10.2_ubi_10.1.sh @@ -0,0 +1,61 @@ +#!/bin/bash -e +# ---------------------------------------------------------------------------- +# +# Package : numexpr +# Version : v2.10.2 +# Source repo : https://github.com/pydata/numexpr.git +# Tested on : UBI:10.1 +# Language : Python +# Ci-Check : True +# Script License: Apache License, Version 2 or later +# Maintainer : Shivansh Sharma +# +# Disclaimer: This script has been tested in root mode on given +# ========== platform using the mentioned version of the package. +# It may not work as expected with newer versions of the +# package and/or distribution. In such case, please +# contact "Maintainer" of this script. +# +# ---------------------------------------------------------------------------- + +#variables +PACKAGE_NAME=numexpr +PACKAGE_VERSION=${1:-v2.10.2} +PACKAGE_URL=https://github.com/pydata/numexpr.git +PACKAGE_DIR=./numexpr + +# Install dependencies and tools. +yum install -y git gcc gcc-c++ make wget openssl-devel python3.12-devel python3.12-pip bzip2-devel libffi-devel wget xz zlib-devel cmake openblas-devel + +#clone repository +git clone $PACKAGE_URL +cd $PACKAGE_NAME +git checkout $PACKAGE_VERSION + +#install pytest +python3.12 -m pip install pytest + +python3.12 -m pip install numpy==2.2.6 +python3.12 -m pip install -e . +python3.12 -m pip install tox setuptools + +#install +if ! (python3.12 setup.py install) ; then + echo "------------------$PACKAGE_NAME:Install_fails-------------------------------------" + echo "$PACKAGE_URL $PACKAGE_NAME" + echo "$PACKAGE_NAME | $PACKAGE_URL | $PACKAGE_VERSION | GitHub | Fail | Install_Fails" + exit 1 +fi + +#test +if ! (tox); then + echo "--------------------$PACKAGE_NAME:Install_success_but_test_fails---------------------" + echo "$PACKAGE_URL $PACKAGE_NAME" + echo "$PACKAGE_NAME | $PACKAGE_URL | $PACKAGE_VERSION | GitHub | Fail | Install_success_but_test_Fails" + exit 2 +else + echo "------------------$PACKAGE_NAME:Install_&_test_both_success-------------------------" + echo "$PACKAGE_URL $PACKAGE_NAME" + echo "$PACKAGE_NAME | $PACKAGE_URL | $PACKAGE_VERSION | GitHub | Pass | Both_Install_and_Test_Success" + exit 0 +fi