Skip to content

Commit 48dc6bf

Browse files
Neil Hornepfeerick
Neil Horne
authored andcommitted
Fix builder Dockerfile python install
1 parent 7eee508 commit 48dc6bf

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

builder/Dockerfile

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,22 @@ RUN apt-get update && \
1717
wget \
1818
python3-pip \
1919
gawk && \
20-
rm -rf /var/lib/apt/lists/*
20+
apt-get clean && rm -rf /var/lib/apt/lists/*
2121

2222
RUN wget --quiet https://developer.arm.com/-/media/Files/downloads/gnu/14.2.rel1/binrel/arm-gnu-toolchain-14.2.rel1-x86_64-arm-none-eabi.tar.xz -O - \
2323
| tar -xJ -C /opt
2424

25-
RUN python3 -m pip install -U pip setuptools \
26-
&& python3 -m pip install \
27-
asciitree \
28-
jinja2 \
29-
pillow \
30-
lz4 \
31-
pyelftools
25+
# Python 3.11 introduced the managed environment breakage aka PEP 668.
26+
# since we are building a self-contained environment the simple fix is to add --break-system-packages to all pip installs
27+
RUN python3 -m pip install -U setuptools && \
28+
python3 -m pip install \
29+
asciitree \
30+
jinja2 \
31+
pillow \
32+
lz4 \
33+
pyelftools && \
34+
# Clean pip cache
35+
python3 -m pip cache purge
3236

3337
# work-around for datacopy build script in 2.8.5
3438
RUN ln -s /usr/lib/x86_64-linux-gnu/libclang-14.so.14.0.0 /usr/lib/libclang-14.so && \

0 commit comments

Comments
 (0)