From 644a954b4dc99639227cd6899960e2e385459259 Mon Sep 17 00:00:00 2001 From: Erlend Egeberg Aasland Date: Fri, 27 Aug 2021 12:59:07 +0200 Subject: [PATCH] bpo-44997: macOS does not support loadable SQLite extensions (GH-27979) Authored-by: Ronald Oussoren (cherry picked from commit 2ec9428e3516b6e7c6583687aa3b39fb96925577) Co-authored-by: Erlend Egeberg Aasland --- setup.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/setup.py b/setup.py index 16081a069697b2..3d250e7249d704 100644 --- a/setup.py +++ b/setup.py @@ -1603,6 +1603,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