Skip to content
Snippets Groups Projects
Commit 280ea05e authored by Wouter Deconinck's avatar Wouter Deconinck
Browse files

Use `python -m pip install` instead of using `pip` directly

parent 2912682e
No related branches found
No related tags found
1 merge request!299Use `python -m pip install` instead of using `pip` directly
...@@ -132,10 +132,11 @@ COPY requirements.txt /usr/local/etc/requirements.txt ...@@ -132,10 +132,11 @@ COPY requirements.txt /usr/local/etc/requirements.txt
RUN --mount=type=cache,target=/var/cache/pip \ RUN --mount=type=cache,target=/var/cache/pip \
echo "Installing additional python packages" \ echo "Installing additional python packages" \
&& cd /opt/spack-environment && spack env activate . \ && cd /opt/spack-environment && spack env activate . \
&& pip install --trusted-host pypi.org \ && python -m pip install \
--trusted-host files.pythonhosted.org \ --trusted-host pypi.org \
--cache-dir /var/cache/pip \ --trusted-host files.pythonhosted.org \
--requirement /usr/local/etc/requirements.txt --cache-dir /var/cache/pip \
--requirement /usr/local/etc/requirements.txt
## Including some small fixes: ## Including some small fixes:
## - Somehow PODIO env isn't automatically set, ## - Somehow PODIO env isn't automatically set,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment