diff options
author | Christian Heimes <christian@python.org> | 2021-11-23 21:58:38 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-23 21:58:38 (GMT) |
commit | 9cf5646bb465b7d3d68bfe6d4711feb43d565051 (patch) | |
tree | 8824b5554b2d6c0a1fd51cab457952989a43d0e6 /setup.py | |
parent | b9e9292d75fdea621e05e39b8629e6935d282d0d (diff) | |
download | cpython-9cf5646bb465b7d3d68bfe6d4711feb43d565051.zip cpython-9cf5646bb465b7d3d68bfe6d4711feb43d565051.tar.gz cpython-9cf5646bb465b7d3d68bfe6d4711feb43d565051.tar.bz2 |
bpo-45847: Port _gdbm to PY_STDLIB_MOD (GH-29720)
Diffstat (limited to 'setup.py')
-rw-r--r-- | setup.py | 8 |
1 files changed, 1 insertions, 7 deletions
@@ -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 = [ |