You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Enable sqlite extensions in the Windows build #95656
Enable SQLite extension loading in the Windows build (in the sqlite DLL shipped with Python, and in the stdlib sqlite3 module).
Pitch
At the moment, sqlite extensions are disabled at compile time - see the note in the docs. On Windows, though:
We supply our own sqlite DLL, so we control the build options, and
Users rarely build their own copy of Python.
So the reasons for not enabling extension loading don't really apply there, and conversely, people who want to use extensions cannot do so without limiting themselves to custom Python builds.
Aha... no backport to 3.10 is needed. I changed the #ifdef guard in 3.11, while Christian and I were updating configure.ac. So... this means I broke this for Windows builds in 3.11.
lol, I'd forgotten that by installing 3.11b5, it was now my default, so when I checked and it wasn't working I assumed that was normal, rather than a 3.11 regression.
Thanks for fixing it, and sorry for misreporting it!
Activity
erlend-aasland commentedon Aug 4, 2022
+1
I'll create a patch.
As I said on Discourse, I'd like to make it possible to enable extension loading via
sqlite3_db_config(), but that is out of scope for this issue.pythongh-95656: Enable the sqlite3 load extension API in Windows build
gh-95656: Enable the sqlite3 load extension API in Windows build (#95662
pythongh-95656: Enable the sqlite3 load extension API in Windows build (
[3.10] pythongh-95656: Enable the sqlite3 load extension API in Windo…
erlend-aasland commentedon Aug 4, 2022
Repeating #95662 (comment):
gh-95656: Enable the sqlite3 load extension API in Windows build (GH-…
pfmoore commentedon Aug 4, 2022
lol, I'd forgotten that by installing 3.11b5, it was now my default, so when I checked and it wasn't working I assumed that was normal, rather than a 3.11 regression.
Thanks for fixing it, and sorry for misreporting it!
pythongh-95656: Enable the sqlite3 load extension API in Windows build (