From f5705206b7f47026291982d2c37bc0cf3bfb42cb Mon Sep 17 00:00:00 2001 From: Zach Riggle Date: Fri, 27 May 2016 14:35:46 -0500 Subject: [PATCH] Fix Python version detection in the install script --- setup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.sh b/setup.sh index 55d8302db..6a96723ad 100755 --- a/setup.sh +++ b/setup.sh @@ -9,7 +9,7 @@ fi git submodule update --init --recursive # Find the path to the Python interpreter used by GDB. -PYTHON=$(gdb -batch -q --nx -ex 'pi import sys; print(sys.executable)') +PYTHON=$(gdb -batch -q --nx -ex 'pi import platform; print("python%s.%s" % platform.python_version_tuple()[:2])') # Install Python dependencies sudo $PYTHON -m pip install -Ur requirements.txt