Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions mesonbuild/dependencies/boost.py
Original file line number Diff line number Diff line change
Expand Up @@ -636,6 +636,19 @@ def filter_libraries(self, libs: T.List[BoostLibraryFile], lib_vers: str) -> T.L
abitag = libs[0].abitag
libs = [x for x in libs if x.abitag == abitag]

# Assume that we are building against the latest Python version
# and that the other ones are only there for backwards compatibility.
# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1141440
no_python_libs = []
python_libs = []
for l in libs:
if l.is_python_lib():
python_libs.append(l)
else:
no_python_libs.append(l)
sorted_pylibs = sorted(python_libs, key=lambda l: l.name, reverse=True)
libs = no_python_libs + sorted_pylibs[:1]

return libs

def detect_libraries(self, libdir: Path) -> T.List[BoostLibraryFile]:
Expand Down
Loading