Skip to content

Commit 3f78877

Browse files
committed
fix rare bug
1 parent 8c9c350 commit 3f78877

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

pythonforandroid/build.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -511,6 +511,10 @@ def build_recipes(build_order, python_modules, ctx, project_dir,
511511
recipe.prepare_build_dir(arch.arch)
512512

513513
info_main('# Prebuilding recipes')
514+
# ensure we have `ctx.python_recipe` and `ctx.hostpython`
515+
Recipe.get_recipe("python3", ctx).prebuild_arch(arch)
516+
ctx.hostpython = Recipe.get_recipe("hostpython3", ctx).python_exe
517+
514518
# 2) prebuild packages
515519
for recipe in recipes:
516520
info_main('Prebuilding {} for {}'.format(recipe.name, arch.arch))

0 commit comments

Comments
 (0)