Skip to content

Require bundled OpenFst when OPENGRM_ENABLE_PYNINI is enabled. - #128

Open
copybara-service[bot] wants to merge 1 commit into
mainfrom
copybara/1030172765
Open

copybara-service[bot] wants to merge 1 commit into
mainfrom
copybara/1030172765

Conversation

@copybara-service

Copy link
Copy Markdown

Require bundled OpenFst when OPENGRM_ENABLE_PYNINI is enabled.

Building pynini.pyx requires OpenFst's Cython .pxd headers, which come
from the bundled FetchContent OpenFst source tree. Configuring with
-DOPENGRM_ENABLE_PYNINI=ON -DOPENGRM_USE_SYSTEM_OPENFST=ON previously failed
late during Cython codegen with a missing .pxd error.

Fail fast in the top-level CMakeLists.txt with a FATAL_ERROR when
OPENGRM_ENABLE_PYNINI and OPENGRM_USE_SYSTEM_OPENFST are both ON, before
FetchContent downloads dependencies.

Building `pynini.pyx` requires OpenFst's Cython `.pxd` headers, which come
from the bundled `FetchContent` OpenFst source tree. Configuring with
`-DOPENGRM_ENABLE_PYNINI=ON -DOPENGRM_USE_SYSTEM_OPENFST=ON` previously failed
late during Cython codegen with a missing `.pxd` error.

Fail fast in the top-level `CMakeLists.txt` with a `FATAL_ERROR` when
`OPENGRM_ENABLE_PYNINI` and `OPENGRM_USE_SYSTEM_OPENFST` are both `ON`, before
`FetchContent` downloads dependencies.

PiperOrigin-RevId: 1030172765
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant