Welcome to Centmin Mod Community
Register Now

Beta Branch update addons/python27_install.sh, python 3.4 & IUS Community Repo

Discussion in 'Centmin Mod Github Commits' started by eva2000, Aug 18, 2015.

  1. eva2000

    eva2000 Administrator Staff Member

    May 24, 2014
    Brisbane, Australia
    Local Time:
    12:06 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    update addons/python27_install.sh, python 3.4 & IUS Community Repo

    Add addons/ius-repo.sh centmin mod addon to install IUS Community YUM Repo https://iuscommunity.org/pages/Repos.html disabled by default but can be enabled via --enablerepo=ius. Allows installing Python 2.7, 3.2, 3.3 and 3.4 versions side by side with CentOS 6 system Python 2.6 or CentOS 7 system Python 2.7 (note EPEL has python34 package too).

    Once IUS Community YUM repo is installed, installing python 3.4 is as easy as

    yum -y install python34u python34u-devel python34u-pip python34u-setuptools python34u-tools --enablerepo=ius

    Installing python 2.7 is as easy as

    yum -y install python27 python27-devel python27-pip python27-setuptools python27-tools python27-virtualenv --enablerepo=ius

    Also updated addons/python27_install.sh for this new method and added addons/python34_install.sh which basically does the same above yum commands.

    Binary paths to python 2.7 and 3.4 are as follows

    # rpm -ql python27 python27-pip python27-virtualenv | grep bin
    # /usr/bin/pydoc27
    # /usr/bin/python2.7
    # /usr/bin/pip2.7
    # /usr/bin/virtualenv-2.7

    # rpm -ql python34u python34u-pip | grep bin
    # /usr/bin/pydoc3
    # /usr/bin/pydoc3.4
    # /usr/bin/python3
    # /usr/bin/python3.4
    # /usr/bin/python3.4m
    # /usr/bin/pyvenv
    # /usr/bin/pyvenv-3.4
    # /usr/bin/pip3
    # /usr/bin/pip3.4

    Continue reading...

    123.09beta01 branch