do not pick up db3 in bsddb extension

This commit is contained in:
naddy 2001-10-16 15:46:51 +00:00
parent 7031aca6ff
commit 425dc928fa

View File

@ -1,7 +1,33 @@
$OpenBSD: patch-setup_py,v 1.2 2001/09/24 16:54:25 espie Exp $
$OpenBSD: patch-setup_py,v 1.3 2001/10/16 15:46:51 naddy Exp $
--- setup.py.orig Mon Jul 16 18:00:32 2001
+++ setup.py Thu Sep 20 00:32:35 2001
@@ -608,7 +608,8 @@ def main():
+++ setup.py Tue Oct 16 17:23:57 2001
@@ -346,22 +346,9 @@ class PyBuildExt(build_ext):
# (See http://electricrain.com/greg/python/bsddb3/ for an interface to
# BSD DB 3.x.)
- dblib = []
- if self.compiler.find_library_file(lib_dirs, 'db'):
- dblib = ['db']
-
- db185_incs = find_file('db_185.h', inc_dirs,
- ['/usr/include/db3', '/usr/include/db2'])
- db_inc = find_file('db.h', inc_dirs, ['/usr/include/db1'])
- if db185_incs is not None:
- exts.append( Extension('bsddb', ['bsddbmodule.c'],
- include_dirs = db185_incs,
- define_macros=[('HAVE_DB_185_H',1)],
- libraries = dblib ) )
- elif db_inc is not None:
- exts.append( Extension('bsddb', ['bsddbmodule.c'],
- include_dirs = db_inc,
- libraries = dblib) )
+ exts.append( Extension('bsddb', ['bsddbmodule.c'],
+ include_dirs = ['/usr/include'],
+ libraries = []) )
# The mpz module interfaces to the GNU Multiple Precision library.
# You need to ftp the GNU MP library.
@@ -608,7 +595,8 @@ def main():
ext_modules=[Extension('struct', ['structmodule.c'])],
# Scripts to install