cpython: e2be1f43beed (original) (raw)
Mercurial > cpython
changeset 77481:e2be1f43beed 3.2
Issue #15044: Handle Fedora 17's approach to ndbm compatibility [#15044]
Nick Coghlan ncoghlan@gmail.com | |
---|---|
date | Sun, 17 Jun 2012 18:27:11 +1000 |
parents | 714b8f91f3d4 |
children | 1f6c23ed8218 2db5010a610c |
files | setup.py |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-)[+] [-] setup.py 6 |
line wrap: on
line diff
--- a/setup.py +++ b/setup.py @@ -1077,10 +1077,14 @@ class PyBuildExt(build_ext): for cand in dbm_order: if cand == "ndbm": if find_file("ndbm.h", inc_dirs, []) is not None:
# Some systems have -lndbm, others don't[](#l1.7)
# Some systems have -lndbm, others have -lgdbm_compat,[](#l1.8)
# others don't have either[](#l1.9) if self.compiler.find_library_file(lib_dirs,[](#l1.10) 'ndbm'):[](#l1.11) ndbm_libs = ['ndbm'][](#l1.12)
elif self.compiler.find_library_file(lib_dirs,[](#l1.13)
'gdbm_compat'):[](#l1.14)
ndbm_libs = ['gdbm_compat'][](#l1.15) else:[](#l1.16) ndbm_libs = [][](#l1.17) print("building dbm using ndbm")[](#l1.18)