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-12 12:24:34 +0000 |
commit | 2b287cacfe5a6eee99c6bdc9377358140029ade0 (patch) | |
tree | 231d7125d4e74531a32bde5a1f4e36732ac56767 | |
parent | e6e034516ad8050b76f271b130d66d3a135223b8 (diff) | |
download | buildstream-bschubert/fix-pip-python.tar.gz |
plugins/sources/pip.py: also look for python version named "python"bschubert/fix-pip-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.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', |