Skip to content

Commit aea6dbd

Browse files
committed
Added temporary crystax recipes
1 parent 428b3ca commit aea6dbd

26 files changed

+3423
-1
lines changed

pythonforandroid/build.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,10 @@ def ndk_ver(self):
126126
def ndk_ver(self, value):
127127
self._ndk_ver = value
128128

129+
@property
130+
def ndk_is_crystax(self):
131+
return True if self.ndk_ver[:7] == 'crystax' else False
132+
129133
@property
130134
def sdk_dir(self):
131135
'''The path to the Android SDK.'''

pythonforandroid/recipes/python3/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ class Python3Recipe(Recipe):
1313
depends = ['hostpython3']
1414
conflicts = ['python2']
1515

16+
def __init__(self, **kwargs):
17+
super(Python3Recipe, self).__init__(**kwargs)
18+
self.crystax = lambda *args: True if self.ctx.ndk_is_crystax else False
19+
1620
def prebuild_arch(self, arch):
1721
build_dir = self.get_build_container_dir(arch.arch)
1822
if exists(join(build_dir, '.patched')):
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
2+
from pythonforandroid.toolchain import Recipe, shprint, current_directory, ArchARM
3+
from pythonforandroid.logger import info
4+
from os.path import exists, join
5+
from os import uname
6+
import glob
7+
import sh
8+
9+
class Python3Recipe(Recipe):
10+
version = ''
11+
url = ''
12+
name = 'python3crystax'
13+
14+
depends = ['hostpython3']
15+
conflicts = ['python2', 'python3']
16+
17+
def __init__(self, **kwargs):
18+
super(Python3Recipe, self).__init__(**kwargs)
19+
self.crystax = lambda *args: True if self.ctx.ndk_is_crystax else False
20+
21+
def build_arch(self, arch):
22+
info('doing nothing, the crystax python3 is included in the ndk!')
23+
24+
25+
recipe = Python3Recipe()

0 commit comments

Comments
 (0)