Skip to content
Merged
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
32 changes: 16 additions & 16 deletions p/Pyphen/Pyphen_ubi_8_7.sh → p/Pyphen/Pyphen_ubi_9.6.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 <[email protected]>
#
Expand All @@ -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
Expand All @@ -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
fi
2 changes: 1 addition & 1 deletion p/Pyphen/build_info.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down