Skip to content

Commit 06e38e2

Browse files
committed
glib workaround
1 parent 6af70f1 commit 06e38e2

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

projects/connectedhomeip/Dockerfile

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ RUN apt-get update && \
3636
curl -fL https://www.python.org/ftp/python/3.10.14/Python-3.10.14.tgz -o Python-3.10.14.tgz && \
3737
tar -xf Python-3.10.14.tgz && \
3838
cd Python-3.10.14 && \
39-
./configure --enable-optimizations --prefix=/usr/local \
39+
./configure --prefix=/usr/local \
4040
--with-lto --enable-shared && \
4141
make -j"$(nproc)" && \
4242
make altinstall && \
@@ -46,10 +46,15 @@ RUN apt-get update && \
4646
cd / && rm -rf /tmp/Python-3.10.14*
4747

4848

49+
# Reinstall GLib development headers (workaround needed for gio/gio.h)
50+
RUN apt-get update && \
51+
apt-get install -y --no-install-recommends libglib2.0-dev
52+
53+
RUN python3 -m ensurepip --upgrade
54+
4955
# PEP-517 needed for cryptography. Update pip
50-
RUN python3 -m ensurepip --upgrade && \
51-
python3 -m pip install --upgrade pip setuptools wheel packaging
52-
56+
RUN python3 -m pip install --upgrade pip setuptools wheel packaging
57+
5358
# Install Rust for building `cryptography` python package when bootstraping pigweed
5459
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y
5560
ENV PATH="/root/.cargo/bin:${PATH}"

0 commit comments

Comments
 (0)