From 9e9f52d692de628e7737b42a7405baa7e27ab5df Mon Sep 17 00:00:00 2001 From: Matthias Koefferlein Date: Sat, 8 Nov 2025 18:42:46 +0100 Subject: [PATCH] Python module: trying to fix builds --- setup.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index ad78c2962..cb4c1e5e7 100644 --- a/setup.py +++ b/setup.py @@ -472,6 +472,15 @@ class Config(object): return macros + def extra_macros(self, mod): + """ + Returns extra module-dependent macros + """ + if mod == "_lstream_dbpi": + return [("CAPNP_LITE", 1)] + else: + return [] + def minor_version(self): """ Gets the version string @@ -858,7 +867,7 @@ for pi in dbpi_dirs: pi_ext = Library( config.root + ".db_plugins." + mod_name, - define_macros=config.macros() + [("MAKE_DB_PLUGIN_LIBRARY", 1)], + define_macros=config.macros() + [("MAKE_DB_PLUGIN_LIBRARY", 1)] + config.extra_macros(mod_name), include_dirs=[ pi, os.path.join("src", "plugins", "common"),