Lines 1-6
Link Here
|
1 |
--- setup2.py.orig 2011-03-08 22:16:14.000000000 +0800 |
1 |
--- setup2.py.orig 2011-03-08 22:16:14.000000000 +0800 |
2 |
+++ setup2.py 2011-03-15 16:00:42.000000000 +0800 |
2 |
+++ setup2.py 2011-03-15 16:00:42.000000000 +0800 |
3 |
@@ -53,10 +53,7 @@ |
3 |
@@ -86,10 +86,7 @@ |
4 |
category=DeprecationWarning) |
4 |
category=DeprecationWarning) |
5 |
|
5 |
|
6 |
|
6 |
|
Lines 12-18
Link Here
|
12 |
|
12 |
|
13 |
from distutils.dep_util import newer |
13 |
from distutils.dep_util import newer |
14 |
import distutils.ccompiler |
14 |
import distutils.ccompiler |
15 |
@@ -247,8 +244,8 @@ |
15 |
@@ -292,8 +289,8 @@ |
16 |
incdir = os.path.join(BERKELEYDB_DIR, 'include') |
16 |
incdir = os.path.join(BERKELEYDB_DIR, 'include') |
17 |
if not libdir: |
17 |
if not libdir: |
18 |
libdir = os.path.join(BERKELEYDB_DIR, 'lib') |
18 |
libdir = os.path.join(BERKELEYDB_DIR, 'lib') |
Lines 23-25
Link Here
|
23 |
else: |
23 |
else: |
24 |
if debug: print "LIBS already contains '-ldb' not adding our own", "'-l"+dblib+"'" |
24 |
if debug: print "LIBS already contains '-ldb' not adding our own", "'-l"+dblib+"'" |
25 |
libname = [] |
25 |
libname = [] |
|
|
26 |
@@ -332,7 +329,7 @@ |
27 |
|
28 |
# read db.h to figure out what version of Berkeley DB this is |
29 |
ver = None |
30 |
- db_h_lines = open(os.path.join(incdir, 'db.h'), 'r').readlines() |
31 |
+ db_h_lines = open('%%BDB_INCLUDE_DIR%%/db.h', 'r').readlines() |
32 |
db_ver_re = re.compile( |
33 |
r'^#define\s+DB_VERSION_STRING\s.*Berkeley DB (\d+\.\d+).*') |
34 |
db_ver2 = db_ver |