diff options
Diffstat (limited to 'docker/macros.j2')
| -rw-r--r-- | docker/macros.j2 | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/docker/macros.j2 b/docker/macros.j2 index aee933e7b..419fa0f4f 100644 --- a/docker/macros.j2 +++ b/docker/macros.j2 @@ -22,8 +22,13 @@ {%- endmacro %} {% macro get_pip() %} +{% if distro_python_version == '2.7' %} + {% set python='python' %} +{% else %} + {% set python='python3' %} +{% endif %} RUN curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py \ - && python get-pip.py \ + && {{python}} get-pip.py \ && rm get-pip.py {% endmacro %} |
