aboutsummaryrefslogtreecommitdiff
path: root/docker/macros.j2
diff options
context:
space:
mode:
Diffstat (limited to 'docker/macros.j2')
-rw-r--r--docker/macros.j213
1 files changed, 2 insertions, 11 deletions
diff --git a/docker/macros.j2 b/docker/macros.j2
index efeac9b81..56dd1414a 100644
--- a/docker/macros.j2
+++ b/docker/macros.j2
@@ -32,18 +32,9 @@
{% endif %}
{%- endmacro %}
-{% macro get_pip() %}
-RUN curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py \
- && python3 get-pip.py \
- && rm get-pip.py
-{% endmacro %}
-
-{% macro install_pip(packages, constraints = true, pip_version = pip) %}
+{% macro install_pip(packages, constraints = true) %}
{%- if packages is sequence and packages|length > 0 -%}
-{%- if not pip_version -%}
- {%- set pip_version = 'pip' -%}
-{%- endif -%}
- {{ pip_version }} --no-cache-dir install --upgrade{{ ' ' }}
+ python{{ distro_python_version }} -m pip --no-cache-dir install --upgrade{{ ' ' }}
{%- if constraints %}-c /requirements/upper-constraints.txt {% endif -%}
{{ packages | join(' ') }}
{%- else -%}