Skip to content

Commit

Permalink
workaround for EPEL python36 package retirement before CentOS 7.7
Browse files Browse the repository at this point in the history
workaround for premature EPEL python36 package retirement before CentOS 7.7 is ready https://community.centminmod.com/threads/18142/
  • Loading branch information
centminmod committed Aug 11, 2019
1 parent 7efa77e commit 25cfb1f
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 1 deletion.
23 changes: 23 additions & 0 deletions addons/python36_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,28 @@ return
starttime=$(TZ=UTC date +%s.%N)
{

check_pythonthree_six() {
if [[ "$CENTOS_SEVEN" -eq '7' && "$(yum list python36 -q 2>&1 | grep -o No)" = 'No' ]]; then
# workaround for premature EPEL python36 package retirement before CentOS 7.7 is ready
# https://community.centminmod.com/threads/18142/
if [ ! -f "${DIR_TMP}/python36-libs-3.6.8-1.el7.x86_64.rpm" ]; then
wget -4 -q -O "${DIR_TMP}/python36-libs-3.6.8-1.el7.x86_64.rpm" https://centminmod.com/centminmodparts/epel/el7/x86_64/python36-libs-3.6.8-1.el7.x86_64.rpm
fi
if [ ! -f "${DIR_TMP}/python36-3.6.8-1.el7.x86_64.rpm" ]; then
wget -4 -q -O "${DIR_TMP}/python36-3.6.8-1.el7.x86_64.rpm" https://centminmod.com/centminmodparts/epel/el7/x86_64/python36-3.6.8-1.el7.x86_64.rpm
fi
yum -y localinstall "${DIR_TMP}/python36-3.6.8-1.el7.x86_64.rpm" "${DIR_TMP}/python36-libs-3.6.8-1.el7.x86_64.rpm"
fi
if [[ "$CENTOS_SEVEN" -eq '7' && "$(yum list python36-libs -q 2>&1 | grep -o No)" = 'No' ]]; then
# workaround for premature EPEL python36 package retirement before CentOS 7.7 is ready
# https://community.centminmod.com/threads/18142/
if [ ! -f "${DIR_TMP}/python36-libs-3.6.8-1.el7.x86_64.rpm" ]; then
wget -4 -q -O "${DIR_TMP}/python36-libs-3.6.8-1.el7.x86_64.rpm" https://centminmod.com/centminmodparts/epel/el7/x86_64/python36-libs-3.6.8-1.el7.x86_64.rpm
fi
yum -y localinstall "${DIR_TMP}/python36-libs-3.6.8-1.el7.x86_64.rpm"
fi
}

if [[ "$CENTOS_SIX" = '6' ]]; then
rpm --import https://dl.iuscommunity.org/pub/ius/IUS-COMMUNITY-GPG-KEY
yum -y install https://centos6.iuscommunity.org/ius-release.rpm
Expand Down Expand Up @@ -165,6 +187,7 @@ if [[ -f /bin/systemctl && "$(rpm -qa python36u)" ]]; then
yum -y install python36 python36-devel python36-pip python36-setuptools python36-tools python36-libs python36-tkinter
fi
if [[ ! "$(rpm -qa cmake3)" || ! "$(rpm -qa cmake3-data)" ]]; then
check_pythonthree_six
# reinstall removed dependencies from above removed ius community packages
yum -y install cmake3 cmake3-data
fi
Expand Down
2 changes: 1 addition & 1 deletion centmin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ DT=$(date +"%d%m%y-%H%M%S")
branchname='123.09beta01'
SCRIPT_MAJORVER='1.2.3'
SCRIPT_MINORVER='09'
SCRIPT_INCREMENTVER='241'
SCRIPT_INCREMENTVER='242'
SCRIPT_VERSIONSHORT="${branchname}"
SCRIPT_VERSION="${SCRIPT_VERSIONSHORT}.b${SCRIPT_INCREMENTVER}"
SCRIPT_DATE='31/07/2019'
Expand Down
23 changes: 23 additions & 0 deletions inc/libzip.inc
Original file line number Diff line number Diff line change
@@ -1,4 +1,27 @@
check_pythonthree_six() {
if [[ "$CENTOS_SEVEN" -eq '7' && "$(yum list python36 -q 2>&1 | grep -o No)" = 'No' ]]; then
# workaround for premature EPEL python36 package retirement before CentOS 7.7 is ready
# https://community.centminmod.com/threads/18142/
if [ ! -f "${DIR_TMP}/python36-libs-3.6.8-1.el7.x86_64.rpm" ]; then
wget -4 -q -O "${DIR_TMP}/python36-libs-3.6.8-1.el7.x86_64.rpm" https://centminmod.com/centminmodparts/epel/el7/x86_64/python36-libs-3.6.8-1.el7.x86_64.rpm
fi
if [ ! -f "${DIR_TMP}/python36-3.6.8-1.el7.x86_64.rpm" ]; then
wget -4 -q -O "${DIR_TMP}/python36-3.6.8-1.el7.x86_64.rpm" https://centminmod.com/centminmodparts/epel/el7/x86_64/python36-3.6.8-1.el7.x86_64.rpm
fi
yum -y localinstall "${DIR_TMP}/python36-3.6.8-1.el7.x86_64.rpm" "${DIR_TMP}/python36-libs-3.6.8-1.el7.x86_64.rpm"
fi
if [[ "$CENTOS_SEVEN" -eq '7' && "$(yum list python36-libs -q 2>&1 | grep -o No)" = 'No' ]]; then
# workaround for premature EPEL python36 package retirement before CentOS 7.7 is ready
# https://community.centminmod.com/threads/18142/
if [ ! -f "${DIR_TMP}/python36-libs-3.6.8-1.el7.x86_64.rpm" ]; then
wget -4 -q -O "${DIR_TMP}/python36-libs-3.6.8-1.el7.x86_64.rpm" https://centminmod.com/centminmodparts/epel/el7/x86_64/python36-libs-3.6.8-1.el7.x86_64.rpm
fi
yum -y localinstall "${DIR_TMP}/python36-libs-3.6.8-1.el7.x86_64.rpm"
fi
}

libzip_install() {
check_pythonthree_six
if [ ! -f /usr/bin/cmake3 ]; then
echo
echo "yum -y install cmake3"
Expand Down

0 comments on commit 25cfb1f

Please sign in to comment.