mirror of
https://github.com/python/cpython.git
synced 2025-08-31 22:18:28 +00:00
support linking the _bsddb extension module against BerkeleyDB 4.5
[backport of r53252]
This commit is contained in:
parent
bea1c70144
commit
1a050f5f52
6 changed files with 19 additions and 8 deletions
6
setup.py
6
setup.py
|
@ -606,7 +606,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, 4)
|
||||
max_db_ver = (4, 5)
|
||||
min_db_ver = (3, 3)
|
||||
db_setup_debug = False # verbose debug prints from this script?
|
||||
|
||||
|
@ -623,7 +623,7 @@ class PyBuildExt(build_ext):
|
|||
'/sw/include/db3',
|
||||
]
|
||||
# 4.x minor number specific paths
|
||||
for x in (0,1,2,3,4):
|
||||
for x in (0,1,2,3,4,5):
|
||||
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)
|
||||
|
@ -631,7 +631,7 @@ class PyBuildExt(build_ext):
|
|||
db_inc_paths.append('/pkg/db-4.%d/include' % x)
|
||||
db_inc_paths.append('/opt/db-4.%d/include' % x)
|
||||
# 3.x minor number specific paths
|
||||
for x in (2,3):
|
||||
for x in (3,):
|
||||
db_inc_paths.append('/usr/include/db3%d' % x)
|
||||
db_inc_paths.append('/usr/local/BerkeleyDB.3.%d/include' % x)
|
||||
db_inc_paths.append('/usr/local/include/db3%d' % x)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue