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

ambv webhook-mailer at python.org
Fri Aug 27 07:36:26 EDT 2021


https://github.com/python/cpython/commit/9500dd5144cb911cf4e6fb027bb25b675f0e3643
commit: 9500dd5144cb911cf4e6fb027bb25b675f0e3643
branch: 3.9
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: ambv <lukasz at langa.pl>
date: 2021-08-27T13:36:17+02:00
summary:

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

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

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland at innova.no>

files:
M setup.py

diff --git a/setup.py b/setup.py
index 06fd9be194b2f..54d4b942bd5af 100644
--- a/setup.py
+++ b/setup.py
@@ -1524,6 +1524,8 @@ def detect_sqlite(self):
             # 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



More information about the Python-checkins mailing list