mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
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:
parent
02437641d2
commit
9500dd5144
1 changed files with 2 additions and 0 deletions
2
setup.py
2
setup.py
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue