Skip to content

Commit 474e8f9

Browse files
committed
Revert the change to modules_build_dir in Python3Recipe.create_python_bundle
1 parent b56a4a3 commit 474e8f9

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

pythonforandroid/recipes/python3/__init__.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -389,12 +389,17 @@ def create_python_bundle(self, dirn, arch):
389389
place.
390390
"""
391391
# Todo: find a better way to find the build libs folder
392-
modules_build_dir = glob.glob(join(
392+
modules_build_dir = join(
393393
self.get_build_dir(arch.arch),
394394
'android-build',
395395
'build',
396-
'lib.*'
397-
))[0]
396+
'lib.{}{}-{}-{}'.format(
397+
# android is now supported platform
398+
"android" if self._p_version.minor >= 13 else "linux",
399+
'2' if self.version[0] == '2' else '',
400+
arch.command_prefix.split('-')[0],
401+
self.major_minor_version_string
402+
))
398403

399404
# Compile to *.pyc the python modules
400405
self.compile_python_files(modules_build_dir)

0 commit comments

Comments
 (0)