From 879fc7fd4b562dffc4ab57cd2488929f07c295c7 Mon Sep 17 00:00:00 2001 From: "Erlend E. Aasland" Date: Thu, 26 Aug 2021 21:00:33 +0200 Subject: [PATCH] bpo-44997: macOS does not support loadable SQLite extensions Authored-by: Ronald Oussoren --- setup.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/setup.py b/setup.py index 59b2548810cbf0..9e411cb35e00bd 100644 --- a/setup.py +++ b/setup.py @@ -1605,6 +1605,8 @@ def detect_sqlite(self): # if --enable-loadable-sqlite-extensions configure option is used. if '--enable-loadable-sqlite-extensions' not in sysconfig.get_config_var("CONFIG_ARGS"): sqlite_defines.append(("SQLITE_OMIT_LOAD_EXTENSION", "1")) + elif MACOS and sqlite_incdir == os.path.join(MACOS_SDK_ROOT, "usr/include"): + raise DistutilsError("System version of SQLite does not support loadable extensions") if MACOS: # In every directory on the search path search for a dynamic