summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Schubert <ben.c.schubert@gmail.com>2018-11-08 11:12:27 +0000
committerBenjamin Schubert <ben.c.schubert@gmail.com>2018-11-19 09:46:39 +0000
commit279327397704f9a81e95b09a54c5e560ac1f555d (patch)
tree46d214e796a01e2a66de8106044527300c1a7123
parent0d309478f16e5c8f53c2e066b078dfd1587801aa (diff)
downloadbuildstream-279327397704f9a81e95b09a54c5e560ac1f555d.tar.gz
plugins/sources/pip.py: also look for python version named "python"
In some virtual environments, we might not have the binary with the exact python version, which would lead the current pip plugin to fail to find a working pip version. This adds "python" at the start of the list of valid python versions
-rw-r--r--buildstream/plugins/sources/pip.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/buildstream/plugins/sources/pip.py b/buildstream/plugins/sources/pip.py
index 2ef401620..df2eeb5db 100644
--- a/buildstream/plugins/sources/pip.py
+++ b/buildstream/plugins/sources/pip.py
@@ -80,6 +80,7 @@ _PYPI_INDEX_URL = 'https://pypi.org/simple/'
# Used only for finding pip command
_PYTHON_VERSIONS = [
+ 'python', # when running in a venv, we might not have the exact version
'python2.7',
'python3.0',
'python3.1',