$OpenBSD: patch-setup_py,v 1.2 2002/10/08 02:52:25 brad Exp $
--- setup.py.orig	Thu Dec 27 16:51:02 2001
+++ setup.py	Mon Oct  7 21:52:44 2002
@@ -215,8 +215,6 @@ class PyBuildExt(build_ext):
         exts.append( Extension('pwd', ['pwdmodule.c']) )
         # grp(3)
         exts.append( Extension('grp', ['grpmodule.c']) )
-        # posix (UNIX) errno values
-        exts.append( Extension('errno', ['errnomodule.c']) )
         # select(2); not on ancient System V
         exts.append( Extension('select', ['selectmodule.c']) )
 
@@ -346,22 +344,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.
@@ -609,7 +594,8 @@ def main():
           ext_modules=[Extension('struct', ['structmodule.c'])],
 
           # Scripts to install
-          scripts = ['Tools/scripts/pydoc']
+          #scripts = ['Tools/scripts/pydoc']
+          scripts = []
         )
 
 # --install-platlib
