Skip to content
Open
Show file tree
Hide file tree
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
8 changes: 7 additions & 1 deletion n/numexpr/build_info.json
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -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"
}
Expand Down
61 changes: 61 additions & 0 deletions n/numexpr/numexpr_2.10.2_ubi_10.1.sh
Original file line number Diff line number Diff line change
@@ -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 <Shivansh.S1@ibm.com>
#
# 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
Loading