meson: Improve/fix Python version selection

Peter Eisentraut <peter@eisentraut.org>

Commit: 489ca33081c8f590a314d4a09d9bee56a81f1a85
Author: Peter Eisentraut <peter@eisentraut.org>
Date: 2023-11-30T06:27:17Z
Releases: 17.0
meson: Improve/fix Python version selection

When we look for the Python installation using the meson python
module, we should make it use the python program previously determined
by the 'PYTHON' option.  Otherwise, it will just use its own search
and the 'PYTHON' option won't affect it.  We need this to be able to
select the Python installation to build PL/Python against.

Reviewed-by: Andres Freund <andres@anarazel.de>
Discussion: https://www.postgresql.org/message-id/flat/3f5427e8-cef6-474d-ae88-13db1bfdc1a7%40eisentraut.org

Files

PathChange+/−
meson.build modified +1 −1

Discussion