From 6d54f202485ab4541d640ececf6097c9a20dac8e Mon Sep 17 00:00:00 2001 From: SakshiJain0302 Date: Thu, 30 Jul 2026 16:44:09 +0530 Subject: [PATCH 1/2] Added script for ubi 10.1 --- p/pandas/build_info.json | 7 ++- p/pandas/pandas_2.2.3_ubi_10.1.sh | 75 +++++++++++++++++++++++++++++++ 2 files changed, 80 insertions(+), 2 deletions(-) create mode 100644 p/pandas/pandas_2.2.3_ubi_10.1.sh diff --git a/p/pandas/build_info.json b/p/pandas/build_info.json index 02cd747d17..c32b687967 100644 --- a/p/pandas/build_info.json +++ b/p/pandas/build_info.json @@ -1,5 +1,5 @@ { - "maintainer": "shivansh-ibm", + "maintainer": "SakshiJain0302", "package_name": "pandas", "github_url": "https://github.com/pandas-dev/pandas.git", "version": "v2.2.3", @@ -11,7 +11,10 @@ "use_non_root_user": false, "wheel_build": true, "v2.2.3": { - "build_script": "pandas_2.2.3_ubi_9.5.sh" + "build_script": [ + "pandas_2.2.3_ubi_9.5.sh", + "pandas_2.2.3_ubi_10.1.sh" + ] }, "v2.1.1": { "build_script": "pandas_2.1.1_ubi_9.3.sh" diff --git a/p/pandas/pandas_2.2.3_ubi_10.1.sh b/p/pandas/pandas_2.2.3_ubi_10.1.sh new file mode 100644 index 0000000000..bb0f39d4db --- /dev/null +++ b/p/pandas/pandas_2.2.3_ubi_10.1.sh @@ -0,0 +1,75 @@ +#!/bin/bash -e +# ----------------------------------------------------------------------------- +# +# Package : pandas +# Version : v2.2.3 +# Source repo : https://github.com/pandas-dev/pandas.git +# Tested on : UBI:10.1 +# Language : Python, C, Cython, HTML +# Ci-Check : True +# Script License: Apache License, Version 2 or later +# Maintainer : Sakshi Jain +# +# 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. +# +# ----------------------------------------------------------------------------- +PACKAGE_NAME=pandas +PACKAGE_VERSION=${1:-v2.2.3} +PACKAGE_URL=https://github.com/pandas-dev/pandas.git +PACKAGE_DIR=pandas + +# Install system dependencies including SQLite and LZMA libraries +yum install -y git gcc gcc-c++ python3.12 python3.12-pip python3.12-devel \ + gzip tar make wget xz cmake yum-utils openssl-devel \ + openblas-devel bzip2-devel bzip2 zip unzip libffi-devel zlib-devel autoconf \ + automake libtool cargo pkgconf-pkg-config.ppc64le info.ppc64le fontconfig.ppc64le \ + fontconfig-devel.ppc64le sqlite-devel + +# Clone the pandas repository and checkout the required version +git clone $PACKAGE_URL +cd $PACKAGE_DIR/ +git checkout $PACKAGE_VERSION + +# Initialize and update submodules +git submodule update --init --recursive + +# Install dependencies +python3.12 -m pip install --upgrade pip +python3.12 -m pip install pytest hypothesis build meson meson-python +python3.12 -m pip install cython +python3.12 -m pip install --upgrade --force-reinstall setuptools +python3.12 -m pip install --upgrade six +python3.12 -m pip install meson-python==0.13.1 +python3.12 -m pip install patchelf==0.11.0 +python3.12 -m pip install meson==1.2.1 +python3.12 -m pip install oldest-supported-numpy==2022.8.16 +python3.12 -m pip install ninja +python3.12 -m pip install versioneer[toml] +python3.12 -m pip install numpy==2.2.6 + +# Install pandas package +if ! (python3.12 -m pip install .); then + echo "------------------$PACKAGE_NAME:Install_fails-------------------------------------" + echo "$PACKAGE_URL $PACKAGE_NAME" + echo "$PACKAGE_NAME | $PACKAGE_URL | $PACKAGE_VERSION | Python $PYTHON_VERSION | GitHub | Fail | Install_Fails" + exit 1 +fi + +cd .. + +# Test pandas package +if ! (python3.12 -c "import pandas; print(pandas.__version__)"); then + echo "------------------$PACKAGE_NAME:Install_success_but_test_fails---------------------" + echo "$PACKAGE_URL $PACKAGE_NAME" + echo "$PACKAGE_NAME | $PACKAGE_URL | $PACKAGE_VERSION | Python $PYTHON_VERSION | GitHub | Fail | Install_Success_But_Test_Fails" + exit 2 +else + echo "------------------$PACKAGE_NAME:Install_and_test_success---------------------------" + echo "$PACKAGE_URL $PACKAGE_NAME" + echo "$PACKAGE_NAME | $PACKAGE_URL | $PACKAGE_VERSION | Python $PYTHON_VERSION | GitHub | Pass | Install_and_Test_Success" + exit 0 +fi \ No newline at end of file From ef2d3dae1539c3727bc01ca801753678775e9ab3 Mon Sep 17 00:00:00 2001 From: Sakshi Jain Date: Mon, 24 Aug 2026 17:11:15 +0530 Subject: [PATCH 2/2] Built for pandas v3.0.5 for ubi 10.2 --- p/pandas/build_info.json | 10 ++-- ...3_ubi_10.1.sh => pandas_3.0.5_ubi_10.2.sh} | 52 ++++++++++++------- 2 files changed, 38 insertions(+), 24 deletions(-) rename p/pandas/{pandas_2.2.3_ubi_10.1.sh => pandas_3.0.5_ubi_10.2.sh} (62%) diff --git a/p/pandas/build_info.json b/p/pandas/build_info.json index c32b687967..378c33d257 100644 --- a/p/pandas/build_info.json +++ b/p/pandas/build_info.json @@ -11,10 +11,7 @@ "use_non_root_user": false, "wheel_build": true, "v2.2.3": { - "build_script": [ - "pandas_2.2.3_ubi_9.5.sh", - "pandas_2.2.3_ubi_10.1.sh" - ] + "build_script": "pandas_2.2.3_ubi_9.5.sh" }, "v2.1.1": { "build_script": "pandas_2.1.1_ubi_9.3.sh" @@ -23,6 +20,9 @@ "build_script": "pandas_1.5.3_ubi_9.3.sh" }, "*": { - "build_script": "pandas_ubi_9.3.sh" + "build_script": [ + "pandas_ubi_9.3.sh", + "pandas_3.0.5_ubi_10.2.sh" + ] } } diff --git a/p/pandas/pandas_2.2.3_ubi_10.1.sh b/p/pandas/pandas_3.0.5_ubi_10.2.sh similarity index 62% rename from p/pandas/pandas_2.2.3_ubi_10.1.sh rename to p/pandas/pandas_3.0.5_ubi_10.2.sh index bb0f39d4db..577d9ad816 100644 --- a/p/pandas/pandas_2.2.3_ubi_10.1.sh +++ b/p/pandas/pandas_3.0.5_ubi_10.2.sh @@ -2,9 +2,9 @@ # ----------------------------------------------------------------------------- # # Package : pandas -# Version : v2.2.3 +# Version : v3.0.5 # Source repo : https://github.com/pandas-dev/pandas.git -# Tested on : UBI:10.1 +# Tested on : UBI:10.2 # Language : Python, C, Cython, HTML # Ci-Check : True # Script License: Apache License, Version 2 or later @@ -18,12 +18,16 @@ # # ----------------------------------------------------------------------------- PACKAGE_NAME=pandas -PACKAGE_VERSION=${1:-v2.2.3} +PACKAGE_VERSION=${1:-v3.0.5} PACKAGE_URL=https://github.com/pandas-dev/pandas.git PACKAGE_DIR=pandas +CURRENT_DIR="${PWD}" +WHEEL_DIR="${CURRENT_DIR}/wheels" + +mkdir -p "$WHEEL_DIR" # Install system dependencies including SQLite and LZMA libraries -yum install -y git gcc gcc-c++ python3.12 python3.12-pip python3.12-devel \ +yum install -y git gcc gcc-c++ python3.14 python3.14-pip python3.14-devel \ gzip tar make wget xz cmake yum-utils openssl-devel \ openblas-devel bzip2-devel bzip2 zip unzip libffi-devel zlib-devel autoconf \ automake libtool cargo pkgconf-pkg-config.ppc64le info.ppc64le fontconfig.ppc64le \ @@ -38,31 +42,41 @@ git checkout $PACKAGE_VERSION git submodule update --init --recursive # Install dependencies -python3.12 -m pip install --upgrade pip -python3.12 -m pip install pytest hypothesis build meson meson-python -python3.12 -m pip install cython -python3.12 -m pip install --upgrade --force-reinstall setuptools -python3.12 -m pip install --upgrade six -python3.12 -m pip install meson-python==0.13.1 -python3.12 -m pip install patchelf==0.11.0 -python3.12 -m pip install meson==1.2.1 -python3.12 -m pip install oldest-supported-numpy==2022.8.16 -python3.12 -m pip install ninja -python3.12 -m pip install versioneer[toml] -python3.12 -m pip install numpy==2.2.6 +python3.14 -m pip install --upgrade pip +python3.14 -m pip install pytest hypothesis build meson meson-python +python3.14 -m pip install cython +python3.14 -m pip install --upgrade --force-reinstall setuptools +python3.14 -m pip install --upgrade six +python3.14 -m pip install meson-python==0.13.1 +python3.14 -m pip install patchelf==0.11.0 +python3.14 -m pip install meson==1.2.1 +python3.14 -m pip install oldest-supported-numpy==2022.8.16 +python3.14 -m pip install ninja +python3.14 -m pip install versioneer[toml] +python3.14 -m pip install numpy==2.5.2 # Install pandas package -if ! (python3.12 -m pip install .); then +if ! (python3.14 -m pip install .); then echo "------------------$PACKAGE_NAME:Install_fails-------------------------------------" echo "$PACKAGE_URL $PACKAGE_NAME" echo "$PACKAGE_NAME | $PACKAGE_URL | $PACKAGE_VERSION | Python $PYTHON_VERSION | GitHub | Fail | Install_Fails" exit 1 fi - + +# Create pandas wheel - same approach as numpy +if ! python3.14 -m build --wheel --no-isolation --outdir="$CURRENT_DIR/"; then + echo "============ Wheel Creation Failed for Python $PYTHON_VERSION (without isolation) =================" + echo "Attempting to build with isolation..." + + if ! python3.14 -m build --wheel --outdir="$CURRENT_DIR/"; then + echo "============ Wheel Creation Failed for Python $PYTHON_VERSION =================" + fi +fi + cd .. # Test pandas package -if ! (python3.12 -c "import pandas; print(pandas.__version__)"); then +if ! (python3.14 -c "import pandas; print(pandas.__version__)"); then echo "------------------$PACKAGE_NAME:Install_success_but_test_fails---------------------" echo "$PACKAGE_URL $PACKAGE_NAME" echo "$PACKAGE_NAME | $PACKAGE_URL | $PACKAGE_VERSION | Python $PYTHON_VERSION | GitHub | Fail | Install_Success_But_Test_Fails"