[Python-checkins] r77215 - in python/trunk: Misc/NEWS setup.py
benjamin.peterson
python-checkins at python.org
Fri Jan 1 16:21:13 CET 2010
Author: benjamin.peterson
Date: Fri Jan 1 16:21:13 2010
New Revision: 77215
Log:
allow --with-dbmliborder to specify that no dbm modules will be built #6491
Modified:
python/trunk/Misc/NEWS
python/trunk/setup.py
Modified: python/trunk/Misc/NEWS
==============================================================================
--- python/trunk/Misc/NEWS (original)
+++ python/trunk/Misc/NEWS Fri Jan 1 16:21:13 2010
@@ -93,6 +93,8 @@
Build
-----
+- Issue #6491: Allow --with-dbmliborder to specify that no dbms will be built.
+
- Issue #6943: Use pkg-config to find the libffi headers when the
--with-system-ffi flag is used.
Modified: python/trunk/setup.py
==============================================================================
--- python/trunk/setup.py (original)
+++ python/trunk/setup.py Fri Jan 1 16:21:13 2010
@@ -1000,14 +1000,15 @@
else:
missing.append('bsddb185')
+ 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
@@ -1071,7 +1072,8 @@
missing.append('dbm')
# Anthony Baxter's gdbm module. GNU dbm(3) will require -lgdbm:
- if (self.compiler_obj.find_library_file(lib_dirs, 'gdbm')):
+ if ('gdbm' in dbm_order and
+ self.compiler_obj.find_library_file(lib_dirs, 'gdbm')):
exts.append( Extension('gdbm', ['gdbmmodule.c'],
libraries = ['gdbm'] ) )
else:
More information about the Python-checkins
mailing list