Mercurial > cpython-lru_cache-weakref
diff setup.py @ 65827:5bdc0d6c6939
add --enable-loadable-sqlite-extensions #10268
| author | Benjamin Peterson <benjamin@python.org> |
|---|---|
| date | Sun, 31 Oct 2010 17:11:02 +0000 |
| parents | 75ac13fe7da0 |
| children | 395ac6e319a8 |
line wrap: on
line diff
--- a/setup.py Sun Oct 31 16:50:44 2010 +0000 +++ b/setup.py Sun Oct 31 17:11:02 2010 +0000 @@ -997,8 +997,10 @@ 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
