Skip to content

Commit 73d13ad

Browse files
committed
Use strip that is truthfully reconstructed from env['STRIP']
1 parent a2e63c9 commit 73d13ad

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

pythonforandroid/bootstrap.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -263,11 +263,8 @@ def strip_libraries(self, arch):
263263
info('Python was loaded from CrystaX, skipping strip')
264264
return
265265
env = arch.get_env()
266-
strip = env['STRIP'].split(' ')[0]
267-
if strip is None:
268-
warning('Can\'t find strip in PATH...')
269-
return
270-
strip = sh.Command(strip).bake('--strip-unneeded')
266+
tokens = env['STRIP'].split(' ')
267+
strip = reduce(lambda cmd, t: cmd.bake(t), tokens, sh.Command(tokens.pop(0)))
271268

272269
libs_dir = join(self.dist_dir, '_python_bundle',
273270
'_python_bundle', 'modules')

0 commit comments

Comments
 (0)