Skip to content

Commit 8bcc551

Browse files
committed
docker: Do not try uninstall system python packages
pip install .[dev] is trying to uninstall the Debian-packaged python3-requests and replace it with requests==2.32.4, which pip refuses to do cleanly. Let's keep debian version of requests for now. Signed-off-by: Denys Fedoryshchenko <[email protected]>
1 parent f80f122 commit 8bcc551

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

config/docker/fragment/api.jinja2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ RUN git clone --depth=1 $api_url /tmp/kernelci-api
1919
WORKDIR /tmp/kernelci-api
2020
RUN git fetch origin $api_rev
2121
RUN git checkout FETCH_HEAD
22-
RUN python3 -m pip install '.[dev]' --break-system-packages
22+
RUN python3 -m pip install '.[dev]' --break-system-packages --ignore-installed
2323
WORKDIR /home/kernelci
2424
RUN rm -rf /tmp/kernelci-api
2525

config/docker/fragment/kernelci.jinja2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ RUN git checkout FETCH_HEAD
1616
# Refresh distro pip instead of attempting an in-place upgrade
1717
RUN apt-get update && apt-get install --no-install-recommends -y python3-pip
1818
RUN pip3 install --upgrade setuptools wheel --break-system-packages
19-
RUN python3 -m pip install .[dev] --break-system-packages
19+
RUN python3 -m pip install .[dev] --break-system-packages --ignore-installed
2020
RUN cp -R config /etc/kernelci/
2121
WORKDIR /root
2222
RUN rm -rf /tmp/kernelci-core

0 commit comments

Comments
 (0)