MCPcopy Index your code
hub / github.com/kivy/python-for-android / recipes

Method recipes

pythonforandroid/toolchain.py:793–832  ·  view source on GitHub ↗

Prints recipes basic info, e.g. .. code-block:: bash python3 3.7.1 depends: ['hostpython3', 'sqlite3', 'openssl', 'libffi'] conflicts: [] optional depends: ['sqlite3', 'libffi', 'openssl']

(self, args)

Source from the content-addressed store, hash-verified

791 sys.argv.append(arg)
792
793 def recipes(self, args):
794 """
795 Prints recipes basic info, e.g.
796 .. code-block:: bash
797
798 python3 3.7.1
799 depends: ['hostpython3', 'sqlite3', 'openssl', 'libffi']
800 conflicts: []
801 optional depends: ['sqlite3', 'libffi', 'openssl']
802 """
803 ctx = self.ctx
804 if args.compact:
805 print(" ".join(set(Recipe.list_recipes(ctx))))
806 else:
807 for name in sorted(Recipe.list_recipes(ctx)):
808 try:
809 recipe = Recipe.get_recipe(name, ctx)
810 except (IOError, ValueError):
811 warning('Recipe "{}" could not be loaded'.format(name))
812 except SyntaxError:
813 import traceback
814 traceback.print_exc()
815 warning(('Recipe "{}" could not be loaded due to a '
816 'syntax error').format(name))
817 version = str(recipe.version)
818 print('{Fore.BLUE}{Style.BRIGHT}{recipe.name:<12} '
819 '{Style.RESET_ALL}{Fore.LIGHTBLUE_EX}'
820 '{version:<8}{Style.RESET_ALL}'.format(
821 recipe=recipe, Fore=Out_Fore, Style=Out_Style,
822 version=version))
823 print(' {Fore.GREEN}depends: {recipe.depends}'
824 '{Fore.RESET}'.format(recipe=recipe, Fore=Out_Fore))
825 if recipe.conflicts:
826 print(' {Fore.RED}conflicts: {recipe.conflicts}'
827 '{Fore.RESET}'
828 .format(recipe=recipe, Fore=Out_Fore))
829 if recipe.opt_depends:
830 print(' {Fore.YELLOW}optional depends: '
831 '{recipe.opt_depends}{Fore.RESET}'
832 .format(recipe=recipe, Fore=Out_Fore))
833
834 def bootstraps(self, _args):
835 """List all the bootstraps available to build with."""

Callers

nothing calls this directly

Calls 3

list_recipesMethod · 0.80
get_recipeMethod · 0.80
formatMethod · 0.80

Tested by

no test coverage detected