1. Armin Rigo
  2. cpython-withatomic

Commits

Andrew MacIntyre  committed b5433d3

backport v1.216: add support for another DB library naming convention \n(FreeBSD ports) - patch #1146231

  • Participants
  • Parent commits 44f148b
  • Branches 2.4

Comments (0)

Files changed (1)

File setup.py

View file
                 # 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: