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

Authored-by: Ronald Oussoren <ronaldoussoren@mac.com>
(cherry picked from commit 2ec9428e35)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
This commit is contained in:
Miss Islington (bot) 2021-08-27 04:36:17 -07:00 committed by GitHub
parent 02437641d2
commit 9500dd5144
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1524,6 +1524,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