Fix Python version detection in the install script

This commit is contained in:
Zach Riggle 2016-05-27 14:35:46 -05:00
parent a9e6ee4ae3
commit f5705206b7
1 changed files with 1 additions and 1 deletions

View File

@ -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