mirror of
https://github.com/python/cpython.git
synced 2025-10-17 04:08:28 +00:00
add --enable-loadable-sqlite-extensions #10268
This commit is contained in:
parent
79263252b1
commit
076ed00003
4 changed files with 33 additions and 3 deletions
6
setup.py
6
setup.py
|
@ -997,8 +997,10 @@ class PyBuildExt(build_ext):
|
|||
else:
|
||||
sqlite_defines.append(('MODULE_NAME', '\\"sqlite3\\"'))
|
||||
|
||||
# Comment this out if you want the sqlite3 module to be able to load extensions.
|
||||
sqlite_defines.append(("SQLITE_OMIT_LOAD_EXTENSION", "1"))
|
||||
# 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"))
|
||||
|
||||
if sys.platform == 'darwin':
|
||||
# In every directory on the search path search for a dynamic
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue