Browse Source

Ensure the fallback uses the same install method

We have a test to ensure the install method of pip is from distro
or get-pip. But if an issue appeared in the first task, the
fallback method will automatically fallback to get-pip instead
of fallback to the isolated version of the pre-defined CLI.

This should ensure consistency by not using get-pip if it's not
needed.

Change-Id: I7aa4056ffb9bc2162f0960e74b6458bcbffa141f
Jean-Philippe Evrard 9 months ago
parent
commit
b6024a9184
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      tasks/install_source.yml

+ 1
- 1
tasks/install_source.yml View File

@@ -30,7 +30,7 @@
30 30
   rescue:
31 31
     - name: Install PIP (fall back mode)
32 32
       command: >
33
-        python /opt/get-pip.py --isolated
33
+         {{ pip_install_script.stdout }} --isolated
34 34
                                {{ (pip_install_upper_constraints is defined) |
35 35
                                   ternary('--constraint ' ~ pip_install_upper_constraints | default(''), '') }}
36 36
                                {{ pip_source_install_options }}

Loading…
Cancel
Save