Skip to content

Commit

Permalink
Add python3-setuptools for meson build.
Browse files Browse the repository at this point in the history
According to the pgBackRest docs for v2.52, the python3-distutils package is needed for build from sources.
See PR pgbackrest/pgbackrest#2338.
The python3-distutils package is deprecated.
For Meson on Ubuntu 22.04 and higher it makes sense to use the package python3-setuptools.
See https://ubuntu.pkgs.org/22.04/ubuntu-universe-amd64/meson_0.61.2-1_all.deb.html
and https://ubuntu.pkgs.org/24.04/ubuntu-universe-amd64/meson_1.3.2-1ubuntu1_all.deb.html
  • Loading branch information
woblerr committed Jun 5, 2024
1 parent 8cadebb commit 1985cd7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
10 changes: 9 additions & 1 deletion Dockerfile_meson
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,16 @@ ARG BACKREST_COMPLETION_VERSION_URL="https://github.com/woblerr/pgbackrest-bash-

RUN apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y \
meson \
# According to the pgBackRest docs for v2.52, the python3-distutils package is needed for build from sources.
# See PR https://github.com/pgbackrest/pgbackrest/pull/2338.
# The python3-distutils package is deprecated.
# For Meson on Ubuntu 22.04 and higher it makes sense to use the package python3-setuptools.
# See https://ubuntu.pkgs.org/22.04/ubuntu-universe-amd64/meson_0.61.2-1_all.deb.html
# and https://ubuntu.pkgs.org/24.04/ubuntu-universe-amd64/meson_1.3.2-1ubuntu1_all.deb.html
# python3-distutils \
python3-setuptools \
gcc \
meson \
libpq-dev \
libssl-dev \
libxml2-dev \
Expand Down
1 change: 1 addition & 0 deletions Dockerfile_meson.alpine
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ RUN apk add --no-cache --update \
&& apk --update add --virtual .backrest-build \
build-base \
wget \
py3-setuptools \
meson \
gcc \
libpq-dev \
Expand Down

0 comments on commit 1985cd7

Please sign in to comment.