Skip to content

Commit 626b426

Browse files
committed
finally works
1 parent acb7482 commit 626b426

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

pythonforandroid/recipe.py

+3
Original file line numberDiff line numberDiff line change
@@ -945,6 +945,9 @@ def folder_name(self):
945945
return name
946946

947947
def get_recipe_env(self, arch=None, with_flags_in_cc=True):
948+
if self._host_recipe is None:
949+
self._host_recipe = Recipe.get_recipe("hostpython3", self.ctx)
950+
948951
env = super().get_recipe_env(arch, with_flags_in_cc)
949952
# Set the LANG, this isn't usually important but is a better default
950953
# as it occasionally matters how Python e.g. reads files

pythonforandroid/recipes/python3/__init__.py

+5-2
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ class Python3Recipe(TargetPythonRecipe):
8383
]
8484

8585

86-
depends = ['hostpython3', 'sqlite3', 'openssl', 'libffi', 'libbz2', 'liblzma', 'libb2', 'util-linux']
86+
depends = ['hostpython3', 'sqlite3', 'openssl', 'libffi', 'libbz2', 'liblzma', 'util-linux']
8787

8888
configure_args = [
8989
'--host={android_host}',
@@ -94,6 +94,7 @@ class Python3Recipe(TargetPythonRecipe):
9494
'--without-ensurepip',
9595
'--without-static-libpython',
9696
'--without-readline',
97+
'--with-builtin-hashlib-hashes=md5,sha1,sha2,sha3',
9798

9899
# Android prefix
99100
'--prefix={prefix}',
@@ -378,7 +379,9 @@ def create_python_bundle(self, dirn, arch):
378379
self.get_build_dir(arch.arch),
379380
'android-build',
380381
'build',
381-
'lib.linux{}-{}-{}'.format(
382+
'lib.{}{}-{}-{}'.format(
383+
# android is now supported platform
384+
"android" if self._p_version >= Version("3.13") else "linux",
382385
'2' if self.version[0] == '2' else '',
383386
arch.command_prefix.split('-')[0],
384387
self.major_minor_version_string

0 commit comments

Comments
 (0)