Error on missing Python module in Meson setup

From: Daniel Gustafsson <daniel(at)yesql(dot)se>
To: PostgreSQL Developers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Error on missing Python module in Meson setup
Date: 2022-11-14 13:23:02
Message-ID: BCE30170-9CF2-42B3-97A2-9769BF8C907F@yesql.se
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

When setting up a postgres tree with Meson on an almost empty Debian 11 VM I
hit an error on "meson setup -Ddebug=true build ." like this:

Program python3 found: YES (/usr/bin/python3)
meson.build:987:2: ERROR: Unknown method "dependency" in object.

The error in itself isn't terribly self-explanatory. According to the log the
error was a missing Python package:

Traceback (most recent call last):
File "<string>", line 20, in <module>
File "<string>", line 8, in links_against_libpython
ModuleNotFoundError: No module named ‘distutils.core'

Installing the distutils package fixes it, but it seems harsh to fail setup on
a missing package. Would something like the attached make sense?

--
Daniel Gustafsson https://vmware.com/

Attachment Content-Type Size
meson_python.diff application/octet-stream 758 bytes

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message James Coleman 2022-11-14 13:23:34 Re: Commit fest 2022-11
Previous Message Hayato Kuroda (Fujitsu) 2022-11-14 13:22:40 RE: Time delayed LR (WAS Re: logical replication restrictions)