From ae86a253e24cf657245b13294685b46d48d27096 Mon Sep 17 00:00:00 2001 From: Flavio Castelli Date: Mon, 22 Jul 2013 12:17:19 +0200 Subject: [PATCH] Allow installation of python 2.4 series Make possible to install python 2.4.2 and 2.4.6. --- plugins/python-build/bin/python-build | 11 ++++++++--- plugins/python-build/share/python-build/2.4.2 | 5 +++++ plugins/python-build/share/python-build/2.4.6 | 5 +++++ 3 files changed, 18 insertions(+), 3 deletions(-) create mode 100644 plugins/python-build/share/python-build/2.4.2 create mode 100644 plugins/python-build/share/python-build/2.4.6 diff --git a/plugins/python-build/bin/python-build b/plugins/python-build/bin/python-build index 8253da96..c2356fc7 100755 --- a/plugins/python-build/bin/python-build +++ b/plugins/python-build/bin/python-build @@ -774,14 +774,19 @@ has_broken_mac_llvm_gcc() { [[ "$(gcc --version 2>/dev/null || true)" == *"llvm-gcc-4.2"* ]] } -# Post-install check for Python 2.5.x -build_package_verify_py25() { +# Post-install check for Python 2.4.x +build_package_verify_py24() { build_package_verify_readline "$@" - build_package_verify_sqlite3 "$@" build_package_verify_zlib "$@" build_package_verify_bz2 "$@" } +# Post-install check for Python 2.5.x +build_package_verify_py25() { + build_package_verify_py24 "$@" + build_package_verify_sqlite3 "$@" +} + # Post-install check for Python 2.6.x build_package_verify_py26() { build_package_verify_py25 "$@" diff --git a/plugins/python-build/share/python-build/2.4.2 b/plugins/python-build/share/python-build/2.4.2 new file mode 100644 index 00000000..db5bdc41 --- /dev/null +++ b/plugins/python-build/share/python-build/2.4.2 @@ -0,0 +1,5 @@ +require_gcc +install_package "readline-6.2" "http://ftpmirror.gnu.org/readline/readline-6.2.tar.gz#67948acb2ca081f23359d0256e9a271c" standard --if has_broken_mac_readline +install_package "Python-2.4.2" "http://www.python.org/ftp/python/2.4.2/Python-2.4.2.tgz#07cfc759546f6723bb367be5b1ce9875" standard verify_py24 +install_package "setuptools-0.9.5" "https://pypi.python.org/packages/source/s/setuptools/setuptools-0.9.5.tar.gz#2461dc5378277cfae68809baf8e0ef81" python +install_package "pip-1.1" "https://pypi.python.org/packages/source/p/pip/pip-1.1.tar.gz#62a9f08dd5dc69d76734568a6c040508" python diff --git a/plugins/python-build/share/python-build/2.4.6 b/plugins/python-build/share/python-build/2.4.6 new file mode 100644 index 00000000..74af8835 --- /dev/null +++ b/plugins/python-build/share/python-build/2.4.6 @@ -0,0 +1,5 @@ +require_gcc +install_package "readline-6.2" "http://ftpmirror.gnu.org/readline/readline-6.2.tar.gz#67948acb2ca081f23359d0256e9a271c" standard --if has_broken_mac_readline +install_package "Python-2.4.6" "http://www.python.org/ftp/python/2.4.6/Python-2.4.6.tgz#7564b2b142b1b8345cd5358b7aaaa482" standard verify_py24 +install_package "setuptools-0.9.5" "https://pypi.python.org/packages/source/s/setuptools/setuptools-0.9.5.tar.gz#2461dc5378277cfae68809baf8e0ef81" python +install_package "pip-1.1" "https://pypi.python.org/packages/source/p/pip/pip-1.1.tar.gz#62a9f08dd5dc69d76734568a6c040508" python