diff options
author | Benjamin Schubert <ben.c.schubert@gmail.com> | 2018-11-08 11:12:27 +0000 |
---|---|---|
committer | Benjamin Schubert <ben.c.schubert@gmail.com> | 2018-11-19 09:46:39 +0000 |
commit | 279327397704f9a81e95b09a54c5e560ac1f555d (patch) | |
tree | 46d214e796a01e2a66de8106044527300c1a7123 /buildstream/plugins/sources/pip.py | |
parent | 0d309478f16e5c8f53c2e066b078dfd1587801aa (diff) | |
download | buildstream-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
Diffstat (limited to 'buildstream/plugins/sources/pip.py')
-rw-r--r-- | buildstream/plugins/sources/pip.py | 1 |
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', |