From 1e2a78c87df566c2574ee79e9abb9e2e6a978c0b Mon Sep 17 00:00:00 2001 From: "Robert D. Blanchet Jr" Date: Sun, 17 Feb 2013 10:39:17 -0800 Subject: [PATCH] Fix non-framework python paths. --- install.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index e49b88bd..bce1a301 100755 --- a/install.sh +++ b/install.sh @@ -32,7 +32,8 @@ function python_finder { python_library+="${python_prefix}/Python" python_include+="${python_prefix}/Headers" else - which_python=$(python -c 'import platform;print(platform.python_version())' | sed 's/^[ \t]*//') + which_python=$(python -c 'import sys;print(sys.version)' | sed 's/^[ \t]*//') + which_python="python${which_python:0:3}" lib_python="${python_prefix}/lib/libpython${which_python}" if [ -f "${lib_python}.a" ]; then python_library+="${lib_python}.a"