mirror of
https://github.com/python/cpython.git
synced 2025-07-23 11:15:24 +00:00
bpo-45731: Handle --enable-loadable-sqlite-extensions in configure (GH-29434)
This commit is contained in:
parent
a4774f42e3
commit
e9594f6747
7 changed files with 30 additions and 13 deletions
8
setup.py
8
setup.py
|
@ -1602,9 +1602,11 @@ class PyBuildExt(build_ext):
|
|||
|
||||
# Enable support for loadable extensions in the sqlite3 module
|
||||
# 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"):
|
||||
if (
|
||||
MACOS and
|
||||
sqlite_incdir == os.path.join(MACOS_SDK_ROOT, "usr/include") and
|
||||
sysconfig.get_config_var("PY_SQLITE_ENABLE_LOAD_EXTENSION")
|
||||
):
|
||||
raise DistutilsError("System version of SQLite does not support loadable extensions")
|
||||
|
||||
if MACOS:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue