summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGregory P. Smith <greg@mad-scientist.com>2008-02-03 08:01:46 (GMT)
committerGregory P. Smith <greg@mad-scientist.com>2008-02-03 08:01:46 (GMT)
commit773f347e7c9572b0f8a8797eff2f423397885c8b (patch)
tree3237f609bc587ae98ef317753ec699f40d238a10
parenteeed5b7c220c5ef9ec1666d062cb8c4ab0203415 (diff)
downloadcpython-773f347e7c9572b0f8a8797eff2f423397885c8b.zip
cpython-773f347e7c9572b0f8a8797eff2f423397885c8b.tar.gz
cpython-773f347e7c9572b0f8a8797eff2f423397885c8b.tar.bz2
remove a repeated occurance of a hardcoded berkeleydb library version number
-rw-r--r--setup.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/setup.py b/setup.py
index dace7ca..4bc6f8c 100644
--- a/setup.py
+++ b/setup.py
@@ -727,10 +727,10 @@ class PyBuildExt(build_ext):
for dn in inc_dirs:
std_variants.append(os.path.join(dn, 'db3'))
std_variants.append(os.path.join(dn, 'db4'))
- for x in (0,1,2,3,4,5,6):
+ for x in range(max_db_ver[1]+1):
std_variants.append(os.path.join(dn, "db4%d"%x))
std_variants.append(os.path.join(dn, "db4.%d"%x))
- for x in (2,3):
+ for x in (3,):
std_variants.append(os.path.join(dn, "db3%d"%x))
std_variants.append(os.path.join(dn, "db3.%d"%x))