Use absolute path in install_pip macro
This lets us use the macro in the case there was a WORKDIR instruction that changed the working directory from / earlier in the dockerfile. Change-Id: I2369c9997ef189e7084fac7b5ace014f6f76d698 Closes-Bug: #1746682
This commit is contained in:
parent
8f0583347c
commit
0d4760eaac
@ -24,7 +24,7 @@
|
||||
{% macro install_pip(packages, constraints = true) %}
|
||||
{%- if packages is sequence and packages|length > 0 -%}
|
||||
pip --no-cache-dir install --upgrade{{ ' ' }}
|
||||
{%- if constraints %}-c requirements/upper-constraints.txt {% endif -%}
|
||||
{%- if constraints %}-c /requirements/upper-constraints.txt {% endif -%}
|
||||
{{ packages | join(' ') }}
|
||||
{%- else -%}
|
||||
true
|
||||
|
Loading…
Reference in New Issue
Block a user