File tree Expand file tree Collapse file tree 1 file changed +12
-8
lines changed Expand file tree Collapse file tree 1 file changed +12
-8
lines changed Original file line number Diff line number Diff 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
2222RUN 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
3438RUN ln -s /usr/lib/x86_64-linux-gnu/libclang-14.so.14.0.0 /usr/lib/libclang-14.so && \
You can’t perform that action at this time.
0 commit comments