]> granicus.if.org Git - python/commitdiff
Don't check for broken Berkley-DB versions on some platforms; the
authorMatthias Klose <doko@ubuntu.com>
Tue, 7 Apr 2009 16:08:29 +0000 (16:08 +0000)
committerMatthias Klose <doko@ubuntu.com>
Tue, 7 Apr 2009 16:08:29 +0000 (16:08 +0000)
test was required for the _bsddb3 extension, not necessary for the
_dbm extension.

setup.py

index b4bc3f7ba463b67f36c5818ed7e98385ae38aa9c..3c228d5d3a02f8e525a1f4f73680db5969e4111f 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -5,7 +5,6 @@ __version__ = "$Revision$"
 
 import sys, os, imp, re, optparse
 from glob import glob
-from platform import machine as platform_machine
 
 from distutils import log
 from distutils import sysconfig
@@ -671,13 +670,6 @@ class PyBuildExt(build_ext):
             """
             if not (min_db_ver <= db_ver <= max_db_ver):
                 return False
-            # Use this function to filter out known bad configurations.
-            if (4, 6) == db_ver[:2]:
-                # BerkeleyDB 4.6.x is not stable on many architectures.
-                arch = platform_machine()
-                if arch not in ('i386', 'i486', 'i586', 'i686',
-                                'x86_64', 'ia64'):
-                    return False
             return True
 
         def gen_db_minor_ver_nums(major):