Skip to content

Commit ceed049

Browse files
authored
🐛 fixes Kiwisolver build fails
The error was "Python.h not found", closes #3115 Note that the macos-14 build is still failing
1 parent 9b0eed1 commit ceed049

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

pythonforandroid/recipes/kiwisolver/__init__.py

+8
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,13 @@ class KiwiSolverRecipe(PyProjectRecipe):
88
depends = ['cppy']
99
need_stl_shared = True
1010

11+
# from https://github.com/kivy/python-for-android/issues/3115
12+
def get_recipe_env(self, arch, **kwargs):
13+
env = super().get_recipe_env(arch, **kwargs)
14+
flags = " -I" + self.ctx.python_recipe.include_root(arch.arch)
15+
env["CFLAGS"] = flags
16+
env["CPPFLAGS"] = flags
17+
return env
18+
1119

1220
recipe = KiwiSolverRecipe()

0 commit comments

Comments
 (0)