blob: 8e418fb02e4d086abac536e9e6aa01a9e224e9d7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
$NetBSD: patch-aa,v 1.5 2008/04/21 20:11:58 drochner Exp $
--- setup.py.orig 2008-03-25 14:50:51.000000000 +0100
+++ setup.py
@@ -7,10 +7,7 @@ import re
import sys
import glob
-try :
- from setuptools import setup, Extension
-except :
- from distutils.core import setup, Extension
+from distutils.core import setup, Extension
from distutils.dep_util import newer
import distutils.ccompiler
@@ -201,11 +198,11 @@ if os.name == 'posix':
# figure out from the base setting where the lib and .h are
if not incdir:
- incdir = os.path.join(BERKELEYDB_DIR, 'include')
+ incdir = os.path.join(BERKELEYDB_DIR, 'include/db4')
if not libdir:
libdir = os.path.join(BERKELEYDB_DIR, 'lib')
- if not '-ldb' in LIBS:
- libname = [dblib]
+ if not '-ldb4' in LIBS:
+ libname = ['db4']
else:
if debug: print "LIBS already contains '-ldb' not adding our own", "'-l"+dblib+"'"
libname = []
|