From ccf019ded4911641938fec3553dc6a52921e5b3f Mon Sep 17 00:00:00 2001 From: Miguel Risco-Castillo Date: Tue, 4 Mar 2025 11:43:22 -0500 Subject: [PATCH] From https://github.com/kivy/python-for-android/issues/3115 Fixes the problem with the recipe for KiwiSolver and the current development branch of pythonforandroid. --- pythonforandroid/recipes/kiwisolver/__init__.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pythonforandroid/recipes/kiwisolver/__init__.py b/pythonforandroid/recipes/kiwisolver/__init__.py index c4c19ac257..d94af0f14b 100644 --- a/pythonforandroid/recipes/kiwisolver/__init__.py +++ b/pythonforandroid/recipes/kiwisolver/__init__.py @@ -8,5 +8,13 @@ class KiwiSolverRecipe(PyProjectRecipe): depends = ['cppy'] need_stl_shared = True + # from https://github.com/kivy/python-for-android/issues/3115 + def get_recipe_env(self, arch, **kwargs): + env = super().get_recipe_env(arch, **kwargs) + flags = " -I" + self.ctx.python_recipe.include_root(arch.arch) + env["CFLAGS"] = flags + env["CPPFLAGS"] = flags + return env + recipe = KiwiSolverRecipe()