Skip to content

Commit 5748977

Browse files
committed
test python 3.14
1 parent 7473c1e commit 5748977

File tree

4 files changed

+19
-4
lines changed

4 files changed

+19
-4
lines changed

pythonforandroid/bootstraps/common/build/src/main/java/org/kivy/android/PythonUtil.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ protected static ArrayList<String> getLibraries(File libsDir) {
5151
addLibraryIfExists(libsList, name, libsDir);
5252
}
5353

54-
for (int v = 5; v <= 13; v++) {
54+
for (int v = 5; v <= 14; v++) {
5555
libsList.add("python3." + v + (v <= 7 ? "m" : ""));
5656
}
5757

@@ -74,7 +74,7 @@ public static void loadLibraries(File filesDir, File libsDir) {
7474
// load, and it has failed, give a more
7575
// general error
7676
Log.v(TAG, "Library loading error: " + e.getMessage());
77-
if (lib.startsWith("python3.13") && !foundPython) {
77+
if (lib.startsWith("python3.14") && !foundPython) {
7878
throw new RuntimeException("Could not load any libpythonXXX.so");
7979
} else if (lib.startsWith("python")) {
8080
continue;

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.11.13'
39+
version = '3.14.0'
4040

4141
url = 'https://github.com/python/cpython/archive/refs/tags/v{version}.tar.gz'
4242
'''The default url to download our host python recipe. This url will

pythonforandroid/recipes/python3/__init__.py

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

57-
version = '3.11.13'
57+
version = '3.14.0'
5858
_p_version = Version(version)
5959
url = 'https://github.com/python/cpython/archive/refs/tags/v{version}.tar.gz'
6060
name = 'python3'
@@ -76,6 +76,9 @@ class Python3Recipe(TargetPythonRecipe):
7676
if _p_version.minor >= 11:
7777
patches.append('patches/cpython-311-ctypes-find-library.patch')
7878

79+
if _p_version.minor >= 14:
80+
patches.append('patches/3.14_armv7l_fix.patch')
81+
7982
if shutil.which('lld') is not None:
8083
if _p_version.minor == 7:
8184
patches.append("patches/py3.7.1_fix_cortex_a8.patch")
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
diff '--color=auto' -uNr cpython-3.14.0/Lib/sysconfig/__init__.py cpython-3.14.0.mod/Lib/sysconfig/__init__.py
2+
--- cpython-3.14.0/Lib/sysconfig/__init__.py 2025-10-07 21:45:41.236149298 +0530
3+
+++ cpython-3.14.0.mod/Lib/sysconfig/__init__.py 2025-10-07 21:45:54.650245131 +0530
4+
@@ -702,7 +702,7 @@
5+
"x86_64": "x86_64",
6+
"i686": "x86",
7+
"aarch64": "arm64_v8a",
8+
- "armv7l": "armeabi_v7a",
9+
+ "arm": "armeabi_v7a",
10+
}[machine]
11+
elif osname == "linux":
12+
# At least on Linux/Intel, 'machine' is the processor --

0 commit comments

Comments
 (0)