Skip to content

Commit baa8d48

Browse files
miss-islingtonErlend Egeberg Aasland
andauthored
bpo-44997: macOS does not support loadable SQLite extensions (GH-27979)
Authored-by: Ronald Oussoren <[email protected]> (cherry picked from commit 2ec9428) Co-authored-by: Erlend Egeberg Aasland <[email protected]>
1 parent 719af92 commit baa8d48

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
@@ -1603,6 +1603,8 @@ def detect_sqlite(self):
16031603
# if --enable-loadable-sqlite-extensions configure option is used.
16041604
if '--enable-loadable-sqlite-extensions' not in sysconfig.get_config_var("CONFIG_ARGS"):
16051605
sqlite_defines.append(("SQLITE_OMIT_LOAD_EXTENSION", "1"))
1606+
elif MACOS and sqlite_incdir == os.path.join(MACOS_SDK_ROOT, "usr/include"):
1607+
raise DistutilsError("System version of SQLite does not support loadable extensions")
16061608

16071609
if MACOS:
16081610
# In every directory on the search path search for a dynamic

0 commit comments

Comments
 (0)