Skip to content

Commit 25c6cd2

Browse files
committed
Don't check for broken Berkley-DB versions on some platforms; the
test was required for the _bsddb3 extension, not necessary for the _dbm extension.
1 parent 535336f commit 25c6cd2

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

setup.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
import sys, os, imp, re, optparse
77
from glob import glob
8-
from platform import machine as platform_machine
98

109
from distutils import log
1110
from distutils import sysconfig
@@ -671,13 +670,6 @@ def allow_db_ver(db_ver):
671670
"""
672671
if not (min_db_ver <= db_ver <= max_db_ver):
673672
return False
674-
# Use this function to filter out known bad configurations.
675-
if (4, 6) == db_ver[:2]:
676-
# BerkeleyDB 4.6.x is not stable on many architectures.
677-
arch = platform_machine()
678-
if arch not in ('i386', 'i486', 'i586', 'i686',
679-
'x86_64', 'ia64'):
680-
return False
681673
return True
682674

683675
def gen_db_minor_ver_nums(major):

0 commit comments

Comments
 (0)