Disable linking against BerkeleyDB 4.6 by default as it has proven to

be a buggy release on many platforms.
This commit is contained in:
Gregory P. Smith 2008-02-03 08:10:20 +00:00
parent 946de92f9b
commit 143a070fa0
1 changed files with 6 additions and 3 deletions

View File

@ -608,7 +608,10 @@ class PyBuildExt(build_ext):
# a release. Most open source OSes come with one or more
# versions of BerkeleyDB already installed.
max_db_ver = (4, 6)
max_db_ver = (4, 5)
# NOTE: while the _bsddb.c code links against BerkeleyDB 4.6.x
# we leave that version disabled by default as it has proven to be
# quite a buggy library release on many platforms.
min_db_ver = (3, 3)
db_setup_debug = False # verbose debug prints from this script?
@ -625,7 +628,7 @@ class PyBuildExt(build_ext):
'/sw/include/db3',
]
# 4.x minor number specific paths
for x in (0,1,2,3,4,5,6):
for x in range(max_db_ver[1]+1):
db_inc_paths.append('/usr/include/db4%d' % x)
db_inc_paths.append('/usr/include/db4.%d' % x)
db_inc_paths.append('/usr/local/BerkeleyDB.4.%d/include' % x)
@ -648,7 +651,7 @@ class PyBuildExt(build_ext):
for dn in inc_dirs:
std_variants.append(os.path.join(dn, 'db3'))
std_variants.append(os.path.join(dn, 'db4'))
for x in (0,1,2,3,4,5,6):
for x in range(max_db_ver[1]+1):
std_variants.append(os.path.join(dn, "db4%d"%x))
std_variants.append(os.path.join(dn, "db4.%d"%x))
for x in (2,3):