File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed
bootstraps/common/build/src/main/java/org/kivy/android Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -44,6 +44,7 @@ protected static ArrayList<String> getLibraries(File libsDir) {
4444 libsList .add ("python3.6m" );
4545 libsList .add ("python3.7m" );
4646 libsList .add ("python3.8" );
47+ libsList .add ("python3.9" );
4748 libsList .add ("main" );
4849 return libsList ;
4950 }
@@ -63,7 +64,7 @@ public static void loadLibraries(File filesDir, File libsDir) {
6364 // load, and it has failed, give a more
6465 // general error
6566 Log .v (TAG , "Library loading error: " + e .getMessage ());
66- if (lib .startsWith ("python3.8 " ) && !foundPython ) {
67+ if (lib .startsWith ("python3.9 " ) && !foundPython ) {
6768 throw new RuntimeException ("Could not load any libpythonXXX.so" );
6869 } else if (lib .startsWith ("python" )) {
6970 continue ;
Original file line number Diff line number Diff line change @@ -67,14 +67,16 @@ class Python3Recipe(TargetPythonRecipe):
6767 ('patches/py3.7.1_fix-ctypes-util-find-library.patch' , version_starts_with ("3.7" )),
6868 ('patches/py3.7.1_fix-zlib-version.patch' , version_starts_with ("3.7" )),
6969
70- # Python 3.8.1
71- ('patches/py3.8.1.patch' , version_starts_with ("3.8" ))
70+ # Python 3.8.1 & 3.9.X
71+ ('patches/py3.8.1.patch' , version_starts_with ("3.8" )),
72+ ('patches/py3.8.1.patch' , version_starts_with ("3.9" ))
7273 ]
7374
7475 if sh .which ('lld' ) is not None :
7576 patches = patches + [
7677 ("patches/py3.7.1_fix_cortex_a8.patch" , version_starts_with ("3.7" )),
77- ("patches/py3.8.1_fix_cortex_a8.patch" , version_starts_with ("3.8" ))
78+ ("patches/py3.8.1_fix_cortex_a8.patch" , version_starts_with ("3.8" )),
79+ ("patches/py3.8.1_fix_cortex_a8.patch" , version_starts_with ("3.9" ))
7880 ]
7981
8082 depends = ['hostpython3' , 'sqlite3' , 'openssl' , 'libffi' ]
You can’t perform that action at this time.
0 commit comments