Skip to content

Commit e29f44e

Browse files
committed
build(python): switch to pipx for better virtual env isolation
1 parent e6d93bc commit e29f44e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

aws-cli/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ RUN dnf upgrade -y \
3737
xz-5.2.5-9.amzn2023.0.2 \
3838
zip-3.0-28.amzn2023.0.2 \
3939
&& IFS=$'\n\t' \
40-
&& if dnf upgrade -y | tee >(cat 1>&2) | grep -q -e '^Nothing to do.' ; then \
40+
&& if dnf upgrade -y | tee -a /dev/stderr | grep -q -e '^Nothing to do.' ; then \
4141
exit 1 ; \
4242
fi \
4343
&& dnf clean all \
@@ -47,7 +47,7 @@ RUN dnf upgrade -y \
4747
# FIXME @TL --break-system-packages not supported until Python 3.11.
4848
RUN pip3 install --no-cache-dir --upgrade \
4949
pipx==1.7.1 \
50-
&& pip3 list --outdated | tee >(cat 1>&2) | grep -q -e '^pipx ' ; then \
50+
&& pip3 list --outdated | tee -a /dev/stderr | grep -q -e '^pipx ' ; then \
5151
exit 1 ; \
5252
fi
5353

0 commit comments

Comments
 (0)