MCPcopy Create free account
hub / github.com/kivy/python-for-android / check_recipe_choices

Method check_recipe_choices

pythonforandroid/recipe.py:327–342  ·  view source on GitHub ↗

Checks what recipes are being built to see which of the alternative and optional dependencies are being used, and returns a list of these.

(self)

Source from the content-addressed store, hash-verified

325 return result
326
327 def check_recipe_choices(self):
328 '''Checks what recipes are being built to see which of the alternative
329 and optional dependencies are being used,
330 and returns a list of these.'''
331 recipes = []
332 built_recipes = self.ctx.recipe_build_order
333 for recipe in self.depends:
334 if isinstance(recipe, (tuple, list)):
335 for alternative in recipe:
336 if alternative in built_recipes:
337 recipes.append(alternative)
338 break
339 for recipe in self.opt_depends:
340 if recipe in built_recipes:
341 recipes.append(recipe)
342 return sorted(recipes)
343
344 def get_opt_depends_in_list(self, recipes):
345 '''Given a list of recipe names, returns those that are also in

Callers 2

get_dir_nameMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected