From aa20166a79b9d953ff7bab748c764c76ee0f1467 Mon Sep 17 00:00:00 2001 From: Zachary Cutlip Date: Wed, 6 Nov 2019 15:42:05 -0800 Subject: [PATCH] refactor lldb backend setup: - call get_lldb_python_exe for more robust python-getting --- install.sh | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/install.sh b/install.sh index c20a3d9..ae52f88 100755 --- a/install.sh +++ b/install.sh @@ -186,11 +186,8 @@ if [ "${BACKEND_GDB}" -eq 1 ]; then fi if [ "${BACKEND_LLDB}" -eq 1 ]; then - # Find the Python version used by LLDB - LLDB_PYVER=$(${LLDB} -Qxb --one-line 'script import platform; print(".".join(platform.python_version_tuple()[:2]))'|tail -1) - LLDB_PYTHON=$(${LLDB} -Qxb --one-line 'script import sys; print(sys.executable)'|tail -1) - LLDB_PYTHON="${LLDB_PYTHON/%$LLDB_PYVER/}${LLDB_PYVER}" + LLDB_PYTHON=$(get_lldb_python_exe) ${LLDB_PYTHON} -m pip install --user --upgrade six if [ -n "${VENV}" ]; then