From 697f78643f6604bf075c95fe77972df34fd971e1 Mon Sep 17 00:00:00 2001 From: shivansh-ibm Date: Thu, 16 Apr 2026 09:12:22 +0000 Subject: [PATCH] Update build script to install latest jpype i.e. 1.7.0 --- j/jpype/build_info.json | 4 ++-- j/jpype/jpype_ubi_9.3.sh | 12 +++++++++--- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/j/jpype/build_info.json b/j/jpype/build_info.json index 9bacbe8d2f..5418e693fb 100644 --- a/j/jpype/build_info.json +++ b/j/jpype/build_info.json @@ -1,8 +1,8 @@ { - "maintainer": "vivek8123", + "maintainer": "shivansh-ibm", "package_name": "jpype", "github_url": "https://github.com/jpype-project/jpype.git", - "version": "v1.5.0", + "version": "v1.7.0", "default_branch": "master", "build_script": "jpype_ubi_9.3.sh", "package_dir": "j/jpype", diff --git a/j/jpype/jpype_ubi_9.3.sh b/j/jpype/jpype_ubi_9.3.sh index c674ed6f6d..6fb08d0e30 100644 --- a/j/jpype/jpype_ubi_9.3.sh +++ b/j/jpype/jpype_ubi_9.3.sh @@ -2,13 +2,13 @@ # ----------------------------------------------------------------------------- # # Package : jpype -# Version : v1.5.0 +# Version : v1.7.0 # Source repo : https://github.com/jpype-project/jpype.git # Tested on : UBI 9.3 # Language : Python # Ci-Check : True # Script License : Apache License, Version 2 or later -# Maintainer : Vivek Sharma +# Maintainer : Shivansh Sharma # # Disclaimer: This script has been tested in root mode on the given # ========== platform using the mentioned version of the package. @@ -19,7 +19,7 @@ # ----------------------------------------------------------------------------- PACKAGE_NAME=jpype -PACKAGE_VERSION=${1:-v1.5.0} +PACKAGE_VERSION=${1:-v1.7.0} PACKAGE_DIR=jpype PACKAGE_URL=https://github.com/jpype-project/jpype.git @@ -47,6 +47,12 @@ export CLASSPATH=$CLASSPATH:$(pwd)/sqlite-jdbc.jar:$(pwd)/hsqldb.jar:$(pwd)/h2.j python3 -m pip install -U pip setuptools wheel python3 -m pip install pytest pytest-cov numpy +if [[ "$(printf '%s\n' "1.7.0" "${PACKAGE_VERSION#v}" | sort -V | head -n1)" == "1.7.0" ]]; then + echo "Version >= 1.7.0" + yum install -y ant + python3 -m pip install scikit-build-core +fi + # Install the package if python3 -m pip install --no-build-isolation -e .; then echo "------------------$PACKAGE_NAME: Installation successful ---------------------"