File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
pythonforandroid/recipes/python2 Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 11from os .path import join , exists
22from pythonforandroid .recipe import Recipe
33from pythonforandroid .python import GuestPythonRecipe
4- from pythonforandroid .logger import shprint
4+ from pythonforandroid .logger import shprint , warning
55import sh
66
77
@@ -57,6 +57,11 @@ def prebuild_arch(self, arch):
5757 self .apply_patch (join ('patches' , 'enable-openssl.patch' ), arch .arch )
5858 shprint (sh .touch , patch_mark )
5959
60+ def build_arch (self , arch ):
61+ warning ('DEPRECATION: Support for the Python 2 recipe will be '
62+ 'removed in 2020, please upgrade to Python 3.' )
63+ super ().build_arch (arch )
64+
6065 def set_libs_flags (self , env , arch ):
6166 env = super (Python2Recipe , self ).set_libs_flags (env , arch )
6267 if 'libffi' in self .ctx .recipe_build_order :
You can’t perform that action at this time.
0 commit comments