mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
This is supposed to help configure better sort out the various libdb
incarnations. It's probably not quite sufficient, but should be better than the status quo...
This commit is contained in:
parent
d1ed15edb3
commit
e81f447800
1 changed files with 7 additions and 1 deletions
8
setup.py
8
setup.py
|
@ -389,7 +389,13 @@ class PyBuildExt(build_ext):
|
|||
# BSD DB 3.x.)
|
||||
|
||||
dblib = []
|
||||
if self.compiler.find_library_file(lib_dirs, 'db'):
|
||||
if self.compiler.find_library_file(lib_dirs, 'db-3.1'):
|
||||
dblib = ['db-3.1']
|
||||
elif self.compiler.find_library_file(lib_dirs, 'db2'):
|
||||
dblib = ['db2']
|
||||
elif self.compiler.find_library_file(lib_dirs, 'db1'):
|
||||
dblib = ['db1']
|
||||
elif self.compiler.find_library_file(lib_dirs, 'db'):
|
||||
dblib = ['db']
|
||||
|
||||
db185_incs = find_file('db_185.h', inc_dirs,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue