Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
e43bd62b
Commit
e43bd62b
authored
Oct 06, 2007
by
Gregory P. Smith
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Merge 58344: allow BerkeleyDB 4.6.x >= 4.6.21 for the bsddb module
parent
9e780cc4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
5 deletions
+13
-5
setup.py
setup.py
+13
-5
No files found.
setup.py
View file @
e43bd62b
...
...
@@ -630,16 +630,15 @@ class PyBuildExt(build_ext):
# implementation independent wrapper for these; dumbdbm.py provides
# similar functionality (but slower of course) implemented in Python.
# Sleepycat^WOracle Berkeley DB interface. http://www.sleepycat.com
# Sleepycat^WOracle Berkeley DB interface.
# http://www.oracle.com/database/berkeley-db/db/index.html
#
# This requires the Sleepycat^WOracle DB code. The supported versions
# are set below. Visit
http://www.sleepycat.com/
to download
# are set below. Visit
the URL above
to download
# a release. Most open source OSes come with one or more
# versions of BerkeleyDB already installed.
# XXX(gps) - Do not allow BerkeleyDB 4.6.x until Oracle fixes
# the DB_HASH lockup bug that is present in 4.6.19.
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?
...
...
@@ -710,6 +709,15 @@ class PyBuildExt(build_ext):
db_minor = int(m.group(1))
db_ver = (db_major, db_minor)
# Avoid 4.6 prior to 4.6.21 due to a BerkeleyDB bug
if db_ver == (4, 6):
m = re.search(r"
#define\WDB_VERSION_PATCH\W(\d+)", f)
db_patch
=
int
(
m
.
group
(
1
))
if
db_patch
<
21
:
print
(
"db.h:"
,
db_ver
,
"patch"
,
db_patch
,
"being ignored (4.6.x must be >= 4.6.21)"
)
continue
if
(
(
db_ver
not
in
db_ver_inc_map
)
and
(
db_ver
<=
max_db_ver
and
db_ver
>=
min_db_ver
)
):
# save the include directory with the db.h version
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment