summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2021-08-27 11:27:45 (GMT)
committerGitHub <noreply@github.com>2021-08-27 11:27:45 (GMT)
commit9c74678d53847f61df255435a0e5a6e3e1d657f5 (patch)
treec21b819b67764b19a4adf811581086953da7ad95
parent81148c6f91092c3aa207a53b657b2548a20b230c (diff)
downloadcpython-9c74678d53847f61df255435a0e5a6e3e1d657f5.zip
cpython-9c74678d53847f61df255435a0e5a6e3e1d657f5.tar.gz
cpython-9c74678d53847f61df255435a0e5a6e3e1d657f5.tar.bz2
bpo-44997: macOS does not support loadable SQLite extensions (GH-27979) (GH-27996)
Authored-by: Ronald Oussoren <ronaldoussoren@mac.com> (cherry picked from commit 2ec9428e3516b6e7c6583687aa3b39fb96925577) Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
-rw-r--r--setup.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/setup.py b/setup.py
index 0a2a435..2d6b056 100644
--- a/setup.py
+++ b/setup.py
@@ -1416,6 +1416,8 @@ class PyBuildExt(build_ext):
# 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