diff --git a/README.md b/README.md index 4fb898f..6301fd5 100644 --- a/README.md +++ b/README.md @@ -107,10 +107,11 @@ sudo yum install R-${R_VERSION}-1-1.x86_64.rpm #### SUSE Linux -Enable the [Science](https://en.opensuse.org/openSUSE:Science_Repositories) repository (SLES 12 only): +Enable the Python backports repository (SLES 12 only): ```bash # SLES 12 -sudo zypper --gpg-auto-import-keys addrepo https://download.opensuse.org/repositories/science/SLE_12/science.repo +VERSION="SLE_$(grep "^VERSION=" /etc/os-release | sed -e 's/VERSION=//' -e 's/"//g' -e 's/-/_/')" +sudo zypper --gpg-auto-import-keys addrepo https://download.opensuse.org/repositories/devel:/languages:/python:/backports/$VERSION/devel:languages:python:backports.repo ``` Download the rpm package: diff --git a/install.sh b/install.sh index f2c7a25..7de8dd7 100755 --- a/install.sh +++ b/install.sh @@ -291,7 +291,7 @@ install_pre () { install_epel "${ver}" ;; "SLES12") - install_sci + install_python_backports ;; "LEAP12" | "LEAP15" | "SLES15") ;; @@ -317,9 +317,10 @@ install_epel () { esac } -# Installs the Science repository for SLES 12 -install_sci () { - ${SUDO} zypper --gpg-auto-import-keys addrepo https://download.opensuse.org/repositories/science/SLE_12/science.repo +# Installs the Python backports repository for SLES 12 +install_python_backports () { + SLE_VERSION="SLE_$(grep "^VERSION=" /etc/os-release | sed -e 's/VERSION=//' -e 's/"//g' -e 's/-/_/')" + ${SUDO} zypper --gpg-auto-import-keys addrepo https://download.opensuse.org/repositories/devel:/languages:/python:/backports/$SLE_VERSION/devel:languages:python:backports.repo } do_download () {