From dd1353c59c80d9eee37d0cf1c7eca5e122a71850 Mon Sep 17 00:00:00 2001 From: djoh Date: Fri, 30 Aug 2024 14:40:23 +0000 Subject: [PATCH] add pip alternative --- python.Dockerfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/python.Dockerfile b/python.Dockerfile index 7a40073..a64ef08 100644 --- a/python.Dockerfile +++ b/python.Dockerfile @@ -27,7 +27,7 @@ RUN ./configure --enable-optimizations --enable-loadable-sqlite-extensions && \ make PROFILE_TASK="-m test.regrtest --pgo -j8" -j8 && \ make altinstall -# update alternatives +# update python alternatives RUN update-alternatives --install /usr/bin/python python /usr/local/bin/python$PYTHON_VERSION_SHORT 1 && \ update-alternatives --set python /usr/local/bin/python$PYTHON_VERSION_SHORT @@ -35,6 +35,10 @@ RUN update-alternatives --install /usr/bin/python python /usr/local/bin/python$P RUN python -m ensurepip --upgrade && \ python -m pip install --upgrade pip +# update pip alternatives +RUN update-alternatives --install /usr/bin/pip pip /usr/local/bin/pip$PYTHON_VERSION_SHORT 1 && \ + update-alternatives --set pip /usr/local/bin/pip$PYTHON_VERSION_SHORT + ENV USER container ENV USER container ENV HOME /home/container