Python installation selection in Meson
Peter Eisentraut <peter@eisentraut.org>
From: Peter Eisentraut <peter@eisentraut.org>
To: pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2023-11-28T18:02:42Z
Lists: pgsql-hackers
Attachments
- 0001-Meson-python-detection.patch (text/plain) patch 0001
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.
Commits
-
meson: Improve/fix Python version selection
- 1f5e38847b26 16.2 landed
- 489ca33081c8 17.0 landed