Skip to content
Snippets Groups Projects

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

Merged Wouter Deconinck requested to merge wdconinc-master-patch-98943 into master
1 file
+ 5
4
Compare changes
  • Side-by-side
  • Inline
@@ -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,
Loading