#!/bin/sh
# @function install python27
function InstallPython27()
{
    ShowResult "[green]正在安装Python-2.7.14... [/green]" 1
    
    # install 
    eval cd ${_PATH_COMPILATION_} ${_SYS_SHOW_INSTALL_DETAILS_}
    tar xvf ${_PATH_SOFTWARE_}/Python-2.7.*.tgz ${_SYS_SHOW_INSTALL_DETAILS_}
    eval cd Python-2.7.* ${_SYS_SHOW_INSTALL_DETAILS_}
    eval ./configure ${_SYS_SHOW_INSTALL_DETAILS_}
    eval make ${_SYS_MAKE_EXT_} ${_SYS_SHOW_INSTALL_DETAILS_}
    eval make install ${_SYS_SHOW_INSTALL_DETAILS_}
    eval /usr/local/bin/python -m ensurepip
    /usr/local/bin/python ${_PATH_SOFTWARE_}/get-pip.py ${_SYS_SHOW_INSTALL_DETAILS_}    
    ShowStatus $?
}