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 1
1
from os .path import join , exists
2
2
from pythonforandroid .recipe import Recipe
3
3
from pythonforandroid .python import GuestPythonRecipe
4
- from pythonforandroid .logger import shprint
4
+ from pythonforandroid .logger import shprint , warning
5
5
import sh
6
6
7
7
@@ -57,6 +57,11 @@ def prebuild_arch(self, arch):
57
57
self .apply_patch (join ('patches' , 'enable-openssl.patch' ), arch .arch )
58
58
shprint (sh .touch , patch_mark )
59
59
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
+
60
65
def set_libs_flags (self , env , arch ):
61
66
env = super (Python2Recipe , self ).set_libs_flags (env , arch )
62
67
if 'libffi' in self .ctx .recipe_build_order :
You can’t perform that action at this time.
0 commit comments