Skip to content

Commit 7b15133

Browse files
committed
Changed/improved log messages in several places
1 parent e15277b commit 7b15133

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

pythonforandroid/recipes/python2/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class Python2Recipe(Recipe):
1616
def prebuild_armeabi(self):
1717
build_dir = self.get_build_container_dir('armeabi')
1818
if exists(join(build_dir, '.patched')):
19-
print('Python2 already patched, skipping.')
19+
info('Python2 already patched, skipping.')
2020
return
2121
self.apply_patch(join('patches', 'Python-{}-xcompile.patch'.format(self.version)))
2222
self.apply_patch(join('patches', 'Python-{}-ctypes-disable-wchar.patch'.format(self.version)))

pythonforandroid/toolchain.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,6 @@ def format(self, record):
8181
('It should work (mostly), but you may experience '
8282
'missing features or bugs.'),
8383
Style.RESET_ALL]))
84-
info(''.join([Fore.RED,
85-
('See http://inclem.net/files/p4a_revamp_doc/index.html '
86-
'for the current (WIP) documentation.'),
87-
Style.RESET_ALL]))
88-
8984

9085
def info_main(*args):
9186
logger.info(''.join([Style.BRIGHT, Fore.GREEN] + list(args) +
@@ -739,7 +734,6 @@ def prepare_build_environment(self, user_sdk_dir, user_ndk_dir,
739734
'platforms',
740735
'android-{}'.format(self.android_api),
741736
'arch-arm')
742-
print('ndk platform', self.ndk_platform)
743737
if not exists(self.ndk_platform):
744738
warning('ndk_platform doesn\'t exist')
745739
ok = False
@@ -978,7 +972,7 @@ def get_distribution(cls, ctx, name=None, recipes=[], allow_download=True,
978972
continue
979973
if (set(dist.recipes) == set(recipes) or
980974
(set(recipes).issubset(set(dist.recipes)) and not require_perfect_match)):
981-
info('{} has compatible recipes, using this one'.format(dist.name))
975+
info_notify('{} has compatible recipes, using this one'.format(dist.name))
982976
return dist
983977

984978
assert len(possible_dists) < 2
@@ -2108,7 +2102,7 @@ def build_dist_from_args(ctx, dist, args_list):
21082102
args, unknown = parser.parse_known_args(args_list)
21092103

21102104
bs = Bootstrap.get_bootstrap(args.bootstrap, ctx)
2111-
info_main('# Creating dist with with {} bootstrap'.format(bs.name))
2105+
info_main('# Creating dist with {} bootstrap'.format(bs.name))
21122106
bs.distribution = dist
21132107
info_notify('Dist will have name {} and recipes ({})'.format(
21142108
dist.name, ', '.join(dist.recipes)))

0 commit comments

Comments
 (0)