Skip to content

🐛 Resolve Meson tools through recipe env#3340

Merged
AndreMiras merged 1 commit into
kivy:developfrom
AndreMiras:fix/meson-command-lookup
May 25, 2026
Merged

🐛 Resolve Meson tools through recipe env#3340
AndreMiras merged 1 commit into
kivy:developfrom
AndreMiras:fix/meson-command-lookup

Conversation

@AndreMiras
Copy link
Copy Markdown
Member

MesonRecipe installs meson and ninja as hostpython prerequisites and PyProjectRecipe exposes those executables by prepending the hostpython bin directories to the recipe environment PATH.
Recipes that call sh.meson or sh.ninja directly can fail before _env is applied when those tools are not also visible on the current Python process PATH.

Add shared MesonRecipe helpers that resolve commands against the recipe env PATH and return explicit sh.Command instances.
Use those helpers in the libthorvg and libcairo manual Meson/Ninja build steps.

Add a regression test that reproduces the environment-sensitive lookup failure and verifies the helper resolves meson from env PATH.

MesonRecipe installs meson and ninja as hostpython prerequisites and
PyProjectRecipe exposes those executables by prepending the hostpython
bin directories to the recipe environment PATH.
Recipes that call sh.meson or sh.ninja directly can fail before _env is
applied when those tools are not also visible on the current Python process PATH.

Add shared MesonRecipe helpers that resolve commands against the recipe env PATH
and return explicit sh.Command instances.
Use those helpers in the libthorvg and libcairo manual Meson/Ninja build steps.

Add a regression test that reproduces the environment-sensitive lookup failure and
verifies the helper resolves meson from env PATH.
@AndreMiras
Copy link
Copy Markdown
Member Author

Should hopefully fix recent buildozer integration tests issues when trying to build kivy -> libthorvg -> sh.CommandNotFound: meson, refs: https://github.com/kivy/buildozer/actions/runs/26367835861/job/77629193613

@AndreMiras AndreMiras merged commit 4174efe into kivy:develop May 25, 2026
39 checks passed
@AndreMiras AndreMiras deleted the fix/meson-command-lookup branch May 25, 2026 17:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants