bpo-43444: Move sqlite3 MODULE_NAME from setup.py to module.h (GH-24801)

This commit is contained in:
Erlend Egeberg Aasland 2021-03-13 16:33:39 +01:00 committed by GitHub
parent 75048c8a38
commit 2256a2876b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 3 additions and 10 deletions

View file

@ -1571,12 +1571,7 @@ class PyBuildExt(build_ext):
'_sqlite/row.c',
'_sqlite/statement.c',
'_sqlite/util.c', ]
sqlite_defines = []
if not MS_WINDOWS:
sqlite_defines.append(('MODULE_NAME', '"sqlite3"'))
else:
sqlite_defines.append(('MODULE_NAME', '\\"sqlite3\\"'))
# Enable support for loadable extensions in the sqlite3 module
# if --enable-loadable-sqlite-extensions configure option is used.