diff options
author | Benjamin Peterson <benjamin@python.org> | 2010-01-01 16:29:51 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2010-01-01 16:29:51 (GMT) |
commit | a09e87097f995f03c8c01a46b522e015c07ebca0 (patch) | |
tree | 613a6f2f1d3df782ecb0da9c8f519dfcb87a49d9 | |
parent | 370fe530c89f39008ca4deadc8c5f96adf0551f4 (diff) | |
download | cpython-a09e87097f995f03c8c01a46b522e015c07ebca0.zip cpython-a09e87097f995f03c8c01a46b522e015c07ebca0.tar.gz cpython-a09e87097f995f03c8c01a46b522e015c07ebca0.tar.bz2 |
Merged revisions 77216 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k
................
r77216 | benjamin.peterson | 2010-01-01 10:04:23 -0600 (Fri, 01 Jan 2010) | 21 lines
Merged revisions 77212-77215 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
r77215 | benjamin.peterson | 2010-01-01 09:21:13 -0600 (Fri, 01 Jan 2010) | 1 line
allow --with-dbmliborder to specify that no dbm modules will be built #6491
........
................
-rw-r--r-- | Misc/NEWS | 2 | ||||
-rw-r--r-- | setup.py | 8 |
2 files changed, 7 insertions, 3 deletions
@@ -406,6 +406,8 @@ Extension Modules Build ----- +- Issue #6491: Allow --with-dbmliborder to specify that no dbms will be built. + - Issue #7589: Only build the nis module when the correct header files are found. @@ -893,14 +893,15 @@ class PyBuildExt(build_ext): else: missing.append('_sqlite3') + dbm_order = ['gdbm'] # The standard Unix dbm module: if platform not in ['cygwin']: config_args = [arg.strip("'") for arg in sysconfig.get_config_var("CONFIG_ARGS").split()] - dbm_args = [arg.split('=')[-1] for arg in config_args + dbm_args = [arg for arg in config_args if arg.startswith('--with-dbmliborder=')] if dbm_args: - dbm_order = dbm_args[-1].split(":") + dbm_order = [arg.split('=')[-1] for arg in dbm_args][-1].split(":") else: dbm_order = "ndbm:gdbm:bdb".split(":") dbmext = None @@ -962,7 +963,8 @@ class PyBuildExt(build_ext): missing.append('_dbm') # Anthony Baxter's gdbm module. GNU dbm(3) will require -lgdbm: - if (self.compiler.find_library_file(lib_dirs, 'gdbm')): + if ('gdbm' in dbm_order and + self.compiler.find_library_file(lib_dirs, 'gdbm')): exts.append( Extension('_gdbm', ['_gdbmmodule.c'], libraries = ['gdbm'] ) ) else: |