Fix Python version detection in the install script

pull/37/head
Zach Riggle 10 years ago
parent a9e6ee4ae3
commit f5705206b7

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

Loading…
Cancel
Save