This is an automated email from the ASF dual-hosted git repository.

tvb pushed a commit to branch phil/712-high-priority-job-queue
in repository https://gitbox.apache.org/repos/asf/buildstream.git

commit ff2eece3ca739a1d2244a4a3bf07b1b488089e67
Author: Benjamin Schubert <[email protected]>
AuthorDate: Thu Nov 8 11:12:27 2018 +0000

    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 2ef4016..df2eeb5 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',

Reply via email to