Skip to content

Commit

Permalink
finally works
Browse files Browse the repository at this point in the history
  • Loading branch information
T-Dynamos committed Nov 2, 2024
1 parent acb7482 commit 626b426
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
3 changes: 3 additions & 0 deletions pythonforandroid/recipe.py
Original file line number Diff line number Diff line change
Expand Up @@ -945,6 +945,9 @@ def folder_name(self):
return name

def get_recipe_env(self, arch=None, with_flags_in_cc=True):
if self._host_recipe is None:
self._host_recipe = Recipe.get_recipe("hostpython3", self.ctx)

env = super().get_recipe_env(arch, with_flags_in_cc)
# Set the LANG, this isn't usually important but is a better default
# as it occasionally matters how Python e.g. reads files
Expand Down
7 changes: 5 additions & 2 deletions pythonforandroid/recipes/python3/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ class Python3Recipe(TargetPythonRecipe):
]


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

configure_args = [
'--host={android_host}',
Expand All @@ -94,6 +94,7 @@ class Python3Recipe(TargetPythonRecipe):
'--without-ensurepip',
'--without-static-libpython',
'--without-readline',
'--with-builtin-hashlib-hashes=md5,sha1,sha2,sha3',

# Android prefix
'--prefix={prefix}',
Expand Down Expand Up @@ -378,7 +379,9 @@ def create_python_bundle(self, dirn, arch):
self.get_build_dir(arch.arch),
'android-build',
'build',
'lib.linux{}-{}-{}'.format(
'lib.{}{}-{}-{}'.format(
# android is now supported platform
"android" if self._p_version >= Version("3.13") else "linux",
'2' if self.version[0] == '2' else '',
arch.command_prefix.split('-')[0],
self.major_minor_version_string
Expand Down

0 comments on commit 626b426

Please sign in to comment.