mirror of
https://github.com/python/cpython.git
synced 2025-07-23 11:15:24 +00:00
bpo-45847: Port _gdbm to PY_STDLIB_MOD (GH-29720)
This commit is contained in:
parent
b9e9292d75
commit
9cf5646bb4
5 changed files with 136 additions and 52 deletions
8
setup.py
8
setup.py
|
@ -1256,11 +1256,9 @@ class PyBuildExt(build_ext):
|
|||
|
||||
# libdb, gdbm and ndbm headers and libraries
|
||||
have_ndbm_h = sysconfig.get_config_var("HAVE_NDBM_H")
|
||||
have_gdbm_h = sysconfig.get_config_var("HAVE_GDBM_H")
|
||||
have_gdbm_ndbm_h = sysconfig.get_config_var("HAVE_GDBM_NDBM_H")
|
||||
have_gdbm_dash_ndbm_h = sysconfig.get_config_var("HAVE_GDBM_DASH_NDBM_H")
|
||||
have_libndbm = sysconfig.get_config_var("HAVE_LIBNDBM")
|
||||
have_libgdbm = sysconfig.get_config_var("HAVE_LIBGDBM")
|
||||
have_libgdbm_compat = sysconfig.get_config_var("HAVE_LIBGDBM_COMPAT")
|
||||
have_libdb = sysconfig.get_config_var("HAVE_LIBDB")
|
||||
|
||||
|
@ -1318,11 +1316,7 @@ class PyBuildExt(build_ext):
|
|||
self.missing.append('_dbm')
|
||||
|
||||
# Anthony Baxter's gdbm module. GNU dbm(3) will require -lgdbm:
|
||||
if 'gdbm' in dbm_order and have_libgdbm:
|
||||
self.add(Extension('_gdbm', ['_gdbmmodule.c'],
|
||||
libraries=['gdbm']))
|
||||
else:
|
||||
self.missing.append('_gdbm')
|
||||
self.addext(Extension('_gdbm', ['_gdbmmodule.c']))
|
||||
|
||||
def detect_sqlite(self):
|
||||
sources = [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue