From dfc3f9e13c69d249bc6ecb4ab73bc3c5a9ca6e96 Mon Sep 17 00:00:00 2001 From: Yamashita Yuu Date: Wed, 29 May 2013 19:28:44 +0900 Subject: [PATCH] Set $PYENV_VERSION for existing installation of 3.4 CPython 3.4.x requires "python3.4" to be executable during build if it is in "$PATH". --- plugins/python-build/share/python-build/3.4-dev | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/plugins/python-build/share/python-build/3.4-dev b/plugins/python-build/share/python-build/3.4-dev index e77426eb..d027d318 100644 --- a/plugins/python-build/share/python-build/3.4-dev +++ b/plugins/python-build/share/python-build/3.4-dev @@ -1,3 +1,9 @@ +# Python 3.4 requires "python3.4" to be executable if it is in ${PATH}. +if ! pyenv-which python3.4 1>/dev/null 2>&1; then + if pyenv-whence python3.4 1>/dev/null 2>&1; then + export PYENV_VERSION="$(pyenv-whence python3.4 2>/dev/null | tail -1)" + fi +fi install_hg "Python-3.4-dev" "https://bitbucket.org/mirror/cpython" "default" standard verify_py34 install_package "distribute-0.6.43" "http://pypi.python.org/packages/source/d/distribute/distribute-0.6.43.tar.gz#a216a46dc9bec5835fa3c6041f1c77c2" python install_package "pip-1.3.1" "http://pypi.python.org/packages/source/p/pip/pip-1.3.1.tar.gz#cbb27a191cebc58997c4da8513863153" python