From f574f4605ca4bc967aac7fcb01778ea5bc4e81bd Mon Sep 17 00:00:00 2001 From: gdbtek Date: Thu, 16 Feb 2017 03:16:54 -0800 Subject: [PATCH] bug fixes --- cookbooks/python/recipes/install.bash | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/cookbooks/python/recipes/install.bash b/cookbooks/python/recipes/install.bash index f970158f..46079aa0 100755 --- a/cookbooks/python/recipes/install.bash +++ b/cookbooks/python/recipes/install.bash @@ -9,21 +9,10 @@ function install() { umask '0022' - # Clean Up - - initializeFolder "${PYTHON_INSTALL_FOLDER_PATH}" - # Install - local -r tempFolder="$(getTemporaryFolder)" - - unzipRemoteFile "${PYTHON_DOWNLOAD_URL}" "${tempFolder}" - cd "${tempFolder}" - "${tempFolder}/configure" --prefix="${PYTHON_INSTALL_FOLDER_PATH}" - make - make install + compileAndInstallFromSource "${PYTHON_DOWNLOAD_URL}" "${PYTHON_INSTALL_FOLDER_PATH}" "${PYTHON_INSTALL_FOLDER_PATH}/bin/python3" "$(whoami)" ln -f -s "${PYTHON_INSTALL_FOLDER_PATH}/bin/python3" '/usr/local/bin/python' - rm -f -r "${tempFolder}" # Config Profile @@ -33,7 +22,7 @@ function install() # Display Version - displayVersion "$(python --version)" + displayVersion "$(python3 --version)" umask '0077' }