Re: Python installation selection in Meson

From: Peter Eisentraut <peter(at)eisentraut(dot)org>
To: Andrew Dunstan <andrew(at)dunslane(dot)net>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Python installation selection in Meson
Date: 2023-11-29 13:34:24
Message-ID: 00a399e5-f341-41c3-9a75-e073d7e3fd7d@eisentraut.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 29.11.23 14:23, Andrew Dunstan wrote:
>
> On 2023-11-28 Tu 13:02, Peter Eisentraut wrote:
>> I noticed that under meson, the selection of the Python installation
>> using the 'PYTHON' option doesn't work completely.  The 'PYTHON'
>> option determined the Python binary that will be used to call the
>> various build support programs.  But it doesn't affect the Python
>> installation used for PL/Python.  For that, we need to pass the
>> program determined by the 'PYTHON' option back into the
>> find_installation() routine of the python module.  (Otherwise,
>> find_installation() will just search for an installation on its own.)
>> See attached patch.  I ran this through Cirrus, seems to work.
>
> I noticed when working on the meson/windows stuff that meson would try
> to build plpython against its python installation, which failed
> miserably. The workaround was to abandon separate meson/ninja
> installations via chocolatey, and instead install them using pip. Maybe
> this was as a result of the above problem?

That sounds like it could be the case.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Amit Kapila 2023-11-29 13:42:18 Re: logical decoding and replication of sequences, take 2
Previous Message John Naylor 2023-11-29 13:31:21 Re: Change GUC hashtable to use simplehash?