File tree 1 file changed +12
-8
lines changed
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 && \
17
17
wget \
18
18
python3-pip \
19
19
gawk && \
20
- rm -rf /var/lib/apt/lists/*
20
+ apt-get clean && rm -rf /var/lib/apt/lists/*
21
21
22
22
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 - \
23
23
| tar -xJ -C /opt
24
24
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
32
36
33
37
# work-around for datacopy build script in 2.8.5
34
38
RUN 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