Skip to content

Commit

Permalink
base: Fix broken pygobject package
Browse files Browse the repository at this point in the history
Ubuntu 20.04 ships with the `pygobject` Python package pre-installed
but does not include one of its dependencies: `pycairo` package.

This commit updates the base image Dockerfile to install the
`libcairo2-dev` system package, which is required by the `pycairo`
Python package, and re-install the `pygobject` Python package.

Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
  • Loading branch information
stephanosio committed Dec 15, 2022
1 parent 78d1072 commit b30f9d0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Dockerfile.base
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ RUN apt-get -y update && \
help2man \
iproute2 \
lcov \
libcairo2-dev \
libglib2.0-dev \
libgtk2.0-0 \
liblocale-gettext-perl \
Expand Down Expand Up @@ -110,6 +111,7 @@ RUN wget ${WGET_ARGS} https://github.com/Kitware/CMake/releases/download/v${CMAK
# Install Python dependencies
RUN python3 -m pip install -U pip && \
pip3 install -U wheel setuptools && \
pip3 install pygobject && \
pip3 install \
-r https://raw.githubusercontent.com/zephyrproject-rtos/zephyr/master/scripts/requirements.txt \
-r https://raw.githubusercontent.com/zephyrproject-rtos/mcuboot/master/scripts/requirements.txt \
Expand Down

0 comments on commit b30f9d0

Please sign in to comment.