Building a dylib on macOS means that the installed KenLM artifact can be used either by Python directly via import python or consumed by C++ libraries that want to have KenLM as a runtime dependency.
With both of these approaches, Python users can pip install git+https://github.com/kpu/kenlm and get a library that can be universally consumed.
Since Linux allows for linking against .so ELF objects, this isn't needed on Linux. Windows is similar.
Building a dylib on macOS means that the installed KenLM artifact can be used either by Python directly via
import python
or consumed by C++ libraries that want to have KenLM as a runtime dependency.With both of these approaches, Python users can
pip install git+https://github.com/kpu/kenlm
and get a library that can be universally consumed.Since Linux allows for linking against
.so
ELF objects, this isn't needed on Linux. Windows is similar.