Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e81f447

Browse files
author
Skip Montanaro
committed
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...
1 parent d1ed15e commit e81f447

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

setup.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,13 @@ def detect_modules(self):
389389
# BSD DB 3.x.)
390390

391391
dblib = []
392-
if self.compiler.find_library_file(lib_dirs, 'db'):
392+
if self.compiler.find_library_file(lib_dirs, 'db-3.1'):
393+
dblib = ['db-3.1']
394+
elif self.compiler.find_library_file(lib_dirs, 'db2'):
395+
dblib = ['db2']
396+
elif self.compiler.find_library_file(lib_dirs, 'db1'):
397+
dblib = ['db1']
398+
elif self.compiler.find_library_file(lib_dirs, 'db'):
393399
dblib = ['db']
394400

395401
db185_incs = find_file('db_185.h', inc_dirs,

0 commit comments

Comments
 (0)