Changeset 22:002302ac7622 in minitage/shell

Show
Ignore:
Timestamp:
08/11/08 13:57:03 (5 months ago)
Author:
kiorky <kiorky@…>
Message:

add option to build a 2.4 python instead of 2.5

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • PyBootstrapper.sh

    r20 r22  
    6060ncurses_md5="b6593abe1089d6aab1551c105c9300e3" 
    6161 
    62 python_mirror="http://www.python.org/ftp/python/2.5.2/Python-2.5.2.tar.bz2" 
    63 python_md5="afb5451049eda91fbde10bd5a4b7fadc" 
     62python24_mirror="http://www.python.org/ftp/python/2.4.5/Python-2.4.5.tar.bz2" 
     63python24_md5="aade3958cb097cc1c69ae0074297d359" 
     64python25_mirror="http://www.python.org/ftp/python/2.5.2/Python-2.5.2.tar.bz2" 
     65python25_md5="afb5451049eda91fbde10bd5a4b7fadc" 
     66python_mirror=$python25_mirror 
     67python_md5=$python25_md5 
    6468 
    6569openssl_mirror="http://www.openssl.org/source/openssl-0.9.8h.tar.gz" 
     
    7781zc_buildout_mirror="http://pypi.python.org/packages/source/z/zc.buildout/zc.buildout-1.0.1.tar.gz" 
    7882zc_buildout_md5="438748533cdf043791c98799ed4b8cd3" 
    79  
    8083 
    8184# pretty term colors 
     
    8588BLUE=$'\e[34;01m' 
    8689NORMAL=$'\e[0m' 
    87  
    88  
    89  
    9090 
    9191# display an error message and exit 
     
    164164    echo;echo 
    165165    echo "${YELLOW} PyBootStrapper $version:" 
    166     echo "${BLUE}$0 $RED $0 [-o|--offline] PREFIX" 
     166    echo "${BLUE}$0 $RED $0 [-o|--offline] [-2.4] PREFIX" 
    167167    echo "${GREEN}      Will bootstrap python into PREFIX $NORMAL" 
    168168    echo "${YELLOW}   If you choose offline mode, put you files into PREFIX/downloads $NORMAL" 
     169    echo "${YELLOW}   If you choose to build python2.4 instead of 2.5, add -2.4 to args. $NORMAL" 
    169170} 
    170171 
     
    388389 
    389390bootstrap() { 
    390     compile_bz2      || die "compile_and_install_bz2 failed" 
    391     compile_zlib     || die "compile_and_installzlib failed" 
    392     compile_ncurses  || die "compile_and_install ncurses failed" 
    393     compile_readline || die "compile_and_install_readline failed" 
    394     compile_openssl  || die "compile_and_install_openssl failed" 
     391    #compile_bz2             || die "compile_and_install_bz2 failed" 
     392    #compile_zlib     || die "compile_and_installzlib failed" 
     393    #compile_ncurses  || die "compile_and_install ncurses failed" 
     394    #compile_readline || die "compile_and_install_readline failed" 
     395    #compile_openssl  || die "compile_and_install_openssl failed" 
    395396    compile_python   || die "compile_and_install_python failed" 
    396397} 
     
    437438    elif [[ "$arg" == "--offline" ]];then 
    438439        offline="y" 
    439         shift 
    440440    elif [[ "$arg" == "-h" ]] || [[ "$arg" == "--help" ]] ;then 
    441441        usage 
    442442        exit 
     443    elif [[ $arg == "-2.4" ]] || [[ $arg == "--python-2.4" ]];then 
     444        echo "$YELLOW User choosed to Build python-2.4 !$NORMAL" 
     445        sleep 2 
     446        python_mirror="$python24_mirror" 
     447        python_md5="$python24_md5" 
    443448    elif [[ $arg == "-o" ]] || [[ $arg == "--offline" ]];then 
    444449        offline="y"