]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-44997: macOS does not support loadable SQLite extensions (GH-27979)
authorErlend Egeberg Aasland <erlend.aasland@innova.no>
Fri, 27 Aug 2021 10:59:07 +0000 (12:59 +0200)
committerGitHub <noreply@github.com>
Fri, 27 Aug 2021 10:59:07 +0000 (12:59 +0200)
Authored-by: Ronald Oussoren <ronaldoussoren@mac.com>
setup.py

index 59b2548810cbf0dac6a9f9c1aa2a1e6dc2da1d0c..9e411cb35e00bd77011d4caed065c494b05e326d 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -1605,6 +1605,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