diff --git a/p/Pyphen/Pyphen_ubi_8_7.sh b/p/Pyphen/Pyphen_ubi_9.6.sh similarity index 76% rename from p/Pyphen/Pyphen_ubi_8_7.sh rename to p/Pyphen/Pyphen_ubi_9.6.sh index 9a92c28d8f..f0b8421f2a 100644 --- a/p/Pyphen/Pyphen_ubi_8_7.sh +++ b/p/Pyphen/Pyphen_ubi_9.6.sh @@ -4,9 +4,9 @@ # Package : Pyphen # Version : 0.14.0 # Source repo : https://github.com/Kozea/Pyphen -# Tested on : UBI: 8.7 +# Tested on : UBI:9.6 # Language : Python -# Ci-Check : True +# Ci-Check : True # Script License: Apache License, Version 2 or later # Maintainer : Stuti Wali # @@ -19,27 +19,27 @@ # # ---------------------------------------------------------------------------- -set -e - -# Variables -export PACKAGE_VERSION=${1:-"0.14.0"} -export PACKAGE_NAME=Pyphen -export PACKAGE_URL=https://github.com/Kozea/Pyphen +set -ex +#variables +PACKAGE_NAME=Pyphen +PACKAGE_VERSION=${1:-0.14.0} +PACKAGE_URL=https://github.com/Kozea/Pyphen +PACKAGE_DIR=Pyphen +CURRENT_DIR=`pwd` # Install dependencies -yum install -y python39 git gcc-c++ python39-devel.ppc64le python3-setuptools -pip3 install --upgrade setuptools virtualenv mock ipython_genutils pytest traitlets flit +yum install -y python3 git python3-devel.ppc64le python3-setuptools gcc-toolset-13-gcc +export PATH=/opt/rh/gcc-toolset-13/root/usr/bin:$PATH +export LD_LIBRARY_PATH=/opt/rh/gcc-toolset-13/root/usr/lib64:$LD_LIBRARY_PATH + +pip3 install --upgrade setuptools mock ipython_genutils pytest traitlets flit # Clone the repository git clone $PACKAGE_URL cd $PACKAGE_NAME git checkout $PACKAGE_VERSION -export TOXENV=py39 -virtualenv -p python3 --system-site-packages env2 -/bin/bash -c "source env2/bin/activate" -pip3 install tox -PATH=$PATH:/usr/local/bin/ +pip3 install tox # Build package if !(flit build) ; then @@ -60,4 +60,4 @@ else echo "$PACKAGE_URL $PACKAGE_NAME" echo "$PACKAGE_NAME | $PACKAGE_URL | $PACKAGE_VERSION | GitHub | Pass | Both_Build_and_Test_Success" exit 0 -fi \ No newline at end of file +fi diff --git a/p/Pyphen/build_info.json b/p/Pyphen/build_info.json index 9eba0caa07..e90e140d9e 100644 --- a/p/Pyphen/build_info.json +++ b/p/Pyphen/build_info.json @@ -11,7 +11,7 @@ "validate_build_script": true, "use_non_root_user": false, "0.14.0": { - "build_script": "Pyphen_ubi_8_7.sh" + "build_script": "Pyphen_ubi_9.6.sh" }, "*":{ "build_script": "Pyphen_ubi_9.3.sh"