Skip to content

Commit 098f701

Browse files
committed
Added distinct info_notify logger style
1 parent 2b9f8b8 commit 098f701

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

pythonforandroid/toolchain.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,9 @@ def info_main(*args):
7979
logger.info(''.join([Style.BRIGHT, Fore.GREEN] + list(args) +
8080
[Style.RESET_ALL, Fore.RESET]))
8181

82+
def info_notify(s):
83+
info('{}{}{}{}'.format(Style.BRIGHT, Fore.LIGHTBLUE_EX, s, Style.RESET_ALL))
84+
8285
def pretty_log_dists(dists):
8386
infos = []
8487
for dist in dists:
@@ -1868,6 +1871,8 @@ def build_recipes(names, ctx):
18681871
recipe_loaded.append(name)
18691872
build_order = list(graph.find_order())
18701873
info("Recipe build order is {}".format(build_order))
1874+
info_notify(('The requirements ({}) were not found as recipes, they will be '
1875+
'installed with pip.').format(', '.join(python_modules)))
18711876
ctx.recipe_build_order = build_order
18721877

18731878
recipes = [Recipe.get_recipe(name, ctx) for name in build_order]
@@ -2069,7 +2074,7 @@ def build_dist_from_args(ctx, dist, args_list):
20692074
bs = Bootstrap.get_bootstrap(args.bootstrap, ctx)
20702075
info_main('# Creating dist with with {} bootstrap'.format(bs.name))
20712076
bs.distribution = dist
2072-
info('Dist will have name {} and recipes ({})'.format(
2077+
info_notify('Dist will have name {} and recipes ({})'.format(
20732078
dist.name, ', '.join(dist.recipes)))
20742079

20752080
ctx.dist_name = bs.distribution.name

0 commit comments

Comments
 (0)