For whatever reason, when KenLM is built from pip (e.g. pip install git+https://github.com/kpu/kenlm.git), /usr/local/include isn't getting properly propagated on some macOS systems, and the resulting build can't find lzma.h. The test compilation with that header works when specifically passed with -include lzma.h, but fails when built by the setuptoolsExtension.
For whatever reason, when KenLM is built from
pip
(e.g.pip install git+https://github.com/kpu/kenlm.git
),/usr/local/include
isn't getting properly propagated on some macOS systems, and the resulting build can't findlzma.h
. The test compilation with that header works when specifically passed with-include lzma.h
, but fails when built by thesetuptools
Extension
.Failure example here: https://app.circleci.com/pipelines/github/flashlight/text/283/workflows/f4d5ff8f-2201-401b-a8d7-bf207fd7e64f/jobs/2492