File tree 1 file changed +5
-3
lines changed
pythonforandroid/recipes/hostpython3crystax
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 4
4
5
5
6
6
class Hostpython3Recipe (Recipe ):
7
- version = '3.5'
8
- # url = 'http://python.org/ftp/python/{version}/Python-{version}.tgz'
9
- # url = 'https://github.com/crystax/android-vendor-python-3-5/archive/master.zip'
7
+ version = 'auto' # the version is taken from the python3crystax recipe
10
8
name = 'hostpython3crystax'
11
9
12
10
conflicts = ['hostpython2' ]
@@ -36,6 +34,10 @@ def build_arch(self, arch):
36
34
shprint (sh .mkdir , '-p' , sub_build_dir )
37
35
python3crystax = self .get_recipe ('python3crystax' , self .ctx )
38
36
system_python = sh .which ("python" + python3crystax .version )
37
+ if system_python is None :
38
+ raise OSError (
39
+ ('Trying to use python3crystax=={} but this Python version '
40
+ 'is not installed locally.' ).format (python3crystax .version ))
39
41
link_dest = join (self .get_build_dir (), 'hostpython' )
40
42
shprint (sh .ln , '-sf' , system_python , link_dest )
41
43
You can’t perform that action at this time.
0 commit comments