Skip to content

Commit c681ef9

Browse files
Increased the minimum python version to 3.8
1 parent 81f185e commit c681ef9

File tree

1 file changed

+3
-3
lines changed
  • pythonforandroid/bootstraps/common/build/src/main/java/org/kivy/android

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ protected static ArrayList<String> getLibraries(File libsDir) {
5959
addLibraryIfExists(libsList, name, libsDir);
6060
}
6161

62-
for (int v = 14; v >= 5; v--) {
63-
libsList.add("python3." + v + (v <= 7 ? "m" : ""));
62+
for (int v = 14; v >= 8; v--) {
63+
libsList.add("python3." + v);
6464
}
6565

6666
libsList.add("main");
@@ -85,7 +85,7 @@ public static void loadLibraries(File filesDir, File libsDir) {
8585
// load, and it has failed, give a more
8686
// general error
8787
Log.v(TAG, "Library loading error: " + e.getMessage());
88-
if (lib.startsWith("python3.5") && !foundPython) {
88+
if (lib.startsWith("python3.8") && !foundPython) {
8989
throw new RuntimeException("Could not load any libpythonXXX.so");
9090
} else if (lib.startsWith("python")) {
9191
continue;

0 commit comments

Comments
 (0)