bpo-44997: macOS does not support loadable SQLite extensions (GH-27979)

Authored-by: Ronald Oussoren <ronaldoussoren@mac.com>
This commit is contained in:
Erlend Egeberg Aasland 2021-08-27 12:59:07 +02:00 committed by GitHub
parent 94a3d2a632
commit 2ec9428e35
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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