8000 bpo-44997: macOS does not support loadable SQLite extensions (GH-2797… · python/cpython@9c74678 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9c74678

Browse files
miss-islingtonErlend Egeberg Aasland
andauthored
bpo-44997: macOS does not support loadable SQLite extensions (GH-27979) (GH-27996)
Authored-by: Ronald Oussoren <ronaldoussoren@mac.com> (cherry picked from commit 2ec9428) Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
1 parent 81148c6 commit 9c74678

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

setup.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1416,6 +1416,8 @@ def detect_sqlite(self):
14161416
# if --enable-loadable-sqlite-extensions configure option is used.
14171417
if '--enable-loadable-sqlite-extensions' not in sysconfig.get_config_var("CONFIG_ARGS"):
14181418
sqlite_defines.append(("SQLITE_OMIT_LOAD_EXTENSION", "1"))
1419+
elif MACOS and sqlite_incdir == os.path.join(MACOS_SDK_ROOT, "usr/include"):
1420+
raise DistutilsError("System version of SQLite does not support loadable extensions")
14191421

14201422
if MACOS:
14211423
# In every directory on the search path search for a dynamic

0 commit comments

Comments
 (0)
0