Changeset 22:002302ac7622 in minitage/shell
- 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:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r20
|
r22
|
|
| 60 | 60 | ncurses_md5="b6593abe1089d6aab1551c105c9300e3" |
| 61 | 61 | |
| 62 | | python_mirror="http://www.python.org/ftp/python/2.5.2/Python-2.5.2.tar.bz2" |
| 63 | | python_md5="afb5451049eda91fbde10bd5a4b7fadc" |
| | 62 | python24_mirror="http://www.python.org/ftp/python/2.4.5/Python-2.4.5.tar.bz2" |
| | 63 | python24_md5="aade3958cb097cc1c69ae0074297d359" |
| | 64 | python25_mirror="http://www.python.org/ftp/python/2.5.2/Python-2.5.2.tar.bz2" |
| | 65 | python25_md5="afb5451049eda91fbde10bd5a4b7fadc" |
| | 66 | python_mirror=$python25_mirror |
| | 67 | python_md5=$python25_md5 |
| 64 | 68 | |
| 65 | 69 | openssl_mirror="http://www.openssl.org/source/openssl-0.9.8h.tar.gz" |
| … |
… |
|
| 77 | 81 | zc_buildout_mirror="http://pypi.python.org/packages/source/z/zc.buildout/zc.buildout-1.0.1.tar.gz" |
| 78 | 82 | zc_buildout_md5="438748533cdf043791c98799ed4b8cd3" |
| 79 | | |
| 80 | 83 | |
| 81 | 84 | # pretty term colors |
| … |
… |
|
| 85 | 88 | BLUE=$'\e[34;01m' |
| 86 | 89 | NORMAL=$'\e[0m' |
| 87 | | |
| 88 | | |
| 89 | | |
| 90 | 90 | |
| 91 | 91 | # display an error message and exit |
| … |
… |
|
| 164 | 164 | echo;echo |
| 165 | 165 | echo "${YELLOW} PyBootStrapper $version:" |
| 166 | | echo "${BLUE}$0 $RED $0 [-o|--offline] PREFIX" |
| | 166 | echo "${BLUE}$0 $RED $0 [-o|--offline] [-2.4] PREFIX" |
| 167 | 167 | echo "${GREEN} Will bootstrap python into PREFIX $NORMAL" |
| 168 | 168 | 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" |
| 169 | 170 | } |
| 170 | 171 | |
| … |
… |
|
| 388 | 389 | |
| 389 | 390 | bootstrap() { |
| 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" |
| 395 | 396 | compile_python || die "compile_and_install_python failed" |
| 396 | 397 | } |
| … |
… |
|
| 437 | 438 | elif [[ "$arg" == "--offline" ]];then |
| 438 | 439 | offline="y" |
| 439 | | shift |
| 440 | 440 | elif [[ "$arg" == "-h" ]] || [[ "$arg" == "--help" ]] ;then |
| 441 | 441 | usage |
| 442 | 442 | 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" |
| 443 | 448 | elif [[ $arg == "-o" ]] || [[ $arg == "--offline" ]];then |
| 444 | 449 | offline="y" |