Skip to content

Commit b141c44

Browse files
committed
python: add 3.13 support
1 parent 308d126 commit b141c44

File tree

4 files changed

+4
-7
lines changed

4 files changed

+4
-7
lines changed

pythonforandroid/recipe.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1020,10 +1020,6 @@ def install_python_package(self, arch, name=None, env=None, is_dir=True):
10201020
hostpython = sh.Command(self.hostpython_location)
10211021
hpenv = env.copy()
10221022
with current_directory(self.get_build_dir(arch.arch)):
1023-
shprint(hostpython, 'setup.py', 'install', '-O2',
1024-
'--root={}'.format(self.ctx.get_python_install_dir(arch.arch)),
1025-
'--install-lib=.',
1026-
_env=hpenv, *self.setup_extra_args)
10271023

10281024
if isfile("setup.py"):
10291025
shprint(hostpython, 'setup.py', 'install', '-O2',

pythonforandroid/recipes/hostpython3/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class HostPython3Recipe(Recipe):
3636
:class:`~pythonforandroid.python.HostPythonRecipe`
3737
'''
3838

39-
version = '3.13.5'
39+
version = '3.11.13'
4040
_p_version = Version(version)
4141

4242
url = 'https://github.com/python/cpython/archive/refs/tags/v{version}.tar.gz'

pythonforandroid/recipes/python3/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ class Python3Recipe(TargetPythonRecipe):
5555
:class:`~pythonforandroid.python.GuestPythonRecipe`
5656
'''
5757

58-
version = '3.13.5'
58+
version = '3.11.13'
5959
_p_version = Version(version)
6060
url = 'https://github.com/python/cpython/archive/refs/tags/v{version}.tar.gz'
6161
name = 'python3'

tests/recipes/test_python3.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,8 @@ def test_create_python_bundle(
178178
recipe_build_dir,
179179
'android-build',
180180
'build',
181-
'lib.android{}-{}-{}'.format(
181+
'lib.{}{}-{}-{}'.format(
182+
'android' if self.recipe.version[2] >= "3" else 'linux',
182183
'2' if self.recipe.version[0] == '2' else '',
183184
self.arch.command_prefix.split('-')[0],
184185
self.recipe.major_minor_version_string

0 commit comments

Comments
 (0)