From 2b287cacfe5a6eee99c6bdc9377358140029ade0 Mon Sep 17 00:00:00 2001 From: Benjamin Schubert Date: Thu, 8 Nov 2018 11:12:27 +0000 Subject: 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 --- buildstream/plugins/sources/pip.py | 1 + 1 file changed, 1 insertion(+) 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', -- cgit v1.2.1