From 886be7fbd9053200a4c795ec3d5388c19b399514 Mon Sep 17 00:00:00 2001 From: Jonathan de Jong Date: Thu, 16 May 2024 19:50:14 +0200 Subject: [PATCH] forgot to actually set the api version --- Core/ClientSMLSWIG/Python/SConscript | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Core/ClientSMLSWIG/Python/SConscript b/Core/ClientSMLSWIG/Python/SConscript index 0ee7aae100..db297153d0 100644 --- a/Core/ClientSMLSWIG/Python/SConscript +++ b/Core/ClientSMLSWIG/Python/SConscript @@ -77,10 +77,10 @@ if "SOAR_PYTHON_ABI3" in env["ENV"]: major, minor = env["LIMITED_API_TARGET"] = env["PY_ABI3_VERSION"] # CPP Definition constructed from the minor/major ABI3 version parts - API_NUMBER = (0x1000000 * major) + (0x10000 * minor) + api_version = (0x1000000 * major) + (0x10000 * minor) # Signal to the .i file that we're building the limited API - clone.Append(CPPDEFINES = { 'Py_LIMITED_API': None }) + clone.Append(CPPDEFINES = { 'Py_LIMITED_API': api_version }) else: print("'Requested building Python SML bindings with Python's Limited API, " "while SWIG does not support it, aborting.'", file=sys.stderr)