From: Andrew MacIntyre Date: Wed, 9 Mar 2005 22:27:24 +0000 (+0000) Subject: backport v1.216: add support for another DB library naming convention \n(FreeBSD... X-Git-Tag: v2.4.1c1~7 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2ad5848e5035afc4750147900d11ba647835342b;p=thirdparty%2FPython%2Fcpython.git backport v1.216: add support for another DB library naming convention \n(FreeBSD ports) - patch #1146231 --- diff --git a/setup.py b/setup.py index 6713a9c26473..1a58619b7222 100644 --- a/setup.py +++ b/setup.py @@ -569,7 +569,9 @@ class PyBuildExt(build_ext): # XXX should we -ever- look for a dbX name? Do any # systems really not name their library by version and # symlink to more general names? - for dblib in (('db-%d.%d' % db_ver), ('db%d' % db_ver[0])): + for dblib in (('db-%d.%d' % db_ver), + ('db%d%d' % db_ver), + ('db%d' % db_ver[0])): dblib_file = self.compiler.find_library_file( db_dirs_to_check + lib_dirs, dblib ) if dblib_file: