summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Klose <doko@ubuntu.com>2007-09-03 22:13:48 +0000
committerMatthias Klose <doko@ubuntu.com>2007-09-03 22:13:48 +0000
commitcf754ba39fea286ac04fb8a62f515a4708d46dd2 (patch)
tree515e964013849e9de6a06f5a7bb4a88e9b370933
parentdf65f9bf451f82c689ef4fe249b4eac2a9efa81e (diff)
downloadcpython-git-cf754ba39fea286ac04fb8a62f515a4708d46dd2.tar.gz
- Added support for linking the bsddb module against BerkeleyDB 4.6.x.
-rw-r--r--Misc/NEWS2
-rw-r--r--setup.py6
2 files changed, 5 insertions, 3 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index 9b9d73f7a9..c2e9a86fdc 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -103,6 +103,8 @@ Extension Modules
- Bug #1726026: Correct the field names of WIN32_FIND_DATAA and
WIN32_FIND_DATAW structures in the ctypes.wintypes module.
+- Added support for linking the bsddb module against BerkeleyDB 4.6.x.
+
Documentation
-------------
diff --git a/setup.py b/setup.py
index 65b32ea271..da662eb1f2 100644
--- a/setup.py
+++ b/setup.py
@@ -607,7 +607,7 @@ class PyBuildExt(build_ext):
# a release. Most open source OSes come with one or more
# versions of BerkeleyDB already installed.
- max_db_ver = (4, 5)
+ max_db_ver = (4, 6)
min_db_ver = (3, 3)
db_setup_debug = False # verbose debug prints from this script?
@@ -624,7 +624,7 @@ class PyBuildExt(build_ext):
'/sw/include/db3',
]
# 4.x minor number specific paths
- for x in (0,1,2,3,4,5):
+ for x in (0,1,2,3,4,5,6):
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)
@@ -647,7 +647,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):
+ for x in (0,1,2,3,4,5,6):
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):