From e4d30a4b7e0ede113cf83e98e3210c3a947451eb Mon Sep 17 00:00:00 2001 From: Jakob Egger Date: Tue, 14 Jan 2025 16:31:44 +0100 Subject: [PATCH 3/3] Attempt to fix meson build for PL/Python with limited API --- meson.build | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/meson.build b/meson.build index cfd654d2916..ff31221e4ee 100644 --- a/meson.build +++ b/meson.build @@ -1146,6 +1146,10 @@ if not pyopt.disabled() python3_inst = pm.find_installation(python.path(), required: pyopt) if python3_inst.found() python3_dep = python3_inst.dependency(embed: true, required: pyopt) + python3_dep = declare_dependency( + dependencies: python3_dep, + compile_args: '-DPy_LIMITED_API='0x03020000', + ) # Remove this check after we depend on Meson >= 1.1.0 if not cc.check_header('Python.h', dependencies: python3_dep, required: pyopt, include_directories: postgres_inc) python3_dep = not_found_dep -- 2.39.5 (Apple Git-154)